home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1995-08-29 | 15.7 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Emacs Compiled Lisp
(other/emacsCompiledLisp).
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Emacs Compiled Lisp (other/emacsCompiledLisp)
| magic
| Unsupported |
1%
| dexvert
| Combustion 2 Particle Library (other/combustion2ParticleLibrary)
| ext
| Unsupported |
100%
| file
| Emacs/XEmacs v19 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| Emacs/XEmacs byte-compiled Lisp (generic)
| default
| |
100%
| xdgMime
| text/x-emacs-lisp
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 63 74 68 6f 6d 70 40 |piled by| cthomp@|
|00000020| 77 69 6c 6c 6f 77 2e 63 | 73 2e 75 69 75 63 2e 65 |willow.c|s.uiuc.e|
|00000030| 64 75 20 6f 6e 20 54 75 | 65 20 41 75 67 20 32 39 |du on Tu|e Aug 29|
|00000040| 20 31 34 3a 35 30 3a 33 | 30 20 31 39 39 35 0a 3b | 14:50:3|0 1995.;|
|00000050| 3b 3b 20 66 72 6f 6d 20 | 66 69 6c 65 20 2f 65 78 |;; from |file /ex|
|00000060| 70 6f 72 74 2f 77 69 6c | 6c 6f 77 33 2f 78 65 6d |port/wil|low3/xem|
|00000070| 61 63 73 2d 31 39 2e 31 | 33 2d 72 65 6c 65 61 73 |acs-19.1|3-releas|
|00000080| 65 2f 65 64 69 74 6f 72 | 2f 6c 69 73 70 2f 68 79 |e/editor|/lisp/hy|
|00000090| 70 65 72 62 6f 6c 65 2f | 6b 6f 74 6c 2f 6b 6c 61 |perbole/|kotl/kla|
|000000a0| 62 65 6c 2e 65 6c 0a 3b | 3b 3b 20 65 6d 61 63 73 |bel.el.;|;; emacs|
|000000b0| 20 76 65 72 73 69 6f 6e | 20 31 39 2e 31 33 20 58 | version| 19.13 X|
|000000c0| 45 6d 61 63 73 20 4c 75 | 63 69 64 2e 0a 3b 3b 3b |Emacs Lu|cid..;;;|
|000000d0| 20 62 79 74 65 63 6f 6d | 70 20 76 65 72 73 69 6f | bytecom|p versio|
|000000e0| 6e 20 32 2e 32 35 3b 20 | 31 2d 53 65 70 2d 39 34 |n 2.25; |1-Sep-94|
|000000f0| 2e 0a 3b 3b 3b 20 6f 70 | 74 69 6d 69 7a 61 74 69 |..;;; op|timizati|
|00000100| 6f 6e 20 69 73 20 6f 6e | 2e 0a 3b 3b 3b 20 74 68 |on is on|..;;; th|
|00000110| 69 73 20 66 69 6c 65 20 | 75 73 65 73 20 6f 70 63 |is file |uses opc|
|00000120| 6f 64 65 73 20 77 68 69 | 63 68 20 64 6f 20 6e 6f |odes whi|ch do no|
|00000130| 74 20 65 78 69 73 74 20 | 69 6e 20 45 6d 61 63 73 |t exist |in Emacs|
|00000140| 20 31 38 2e 0a 0a 28 69 | 66 20 28 61 6e 64 20 28 | 18...(i|f (and (|
|00000150| 62 6f 75 6e 64 70 20 27 | 65 6d 61 63 73 2d 76 65 |boundp '|emacs-ve|
|00000160| 72 73 69 6f 6e 29 0a 09 | 20 28 6f 72 20 28 61 6e |rsion)..| (or (an|
|00000170| 64 20 28 62 6f 75 6e 64 | 70 20 27 65 70 6f 63 68 |d (bound|p 'epoch|
|00000180| 3a 3a 76 65 72 73 69 6f | 6e 29 20 65 70 6f 63 68 |::versio|n) epoch|
|00000190| 3a 3a 76 65 72 73 69 6f | 6e 29 0a 09 20 20 20 20 |::versio|n).. |
|000001a0| 20 28 73 74 72 69 6e 67 | 2d 6c 65 73 73 70 20 65 | (string|-lessp e|
|000001b0| 6d 61 63 73 2d 76 65 72 | 73 69 6f 6e 20 22 31 39 |macs-ver|sion "19|
|000001c0| 22 29 29 29 0a 20 20 20 | 20 28 65 72 72 6f 72 20 |"))). | (error |
|000001d0| 22 54 68 69 73 20 66 69 | 6c 65 20 77 61 73 20 63 |"This fi|le was c|
|000001e0| 6f 6d 70 69 6c 65 64 20 | 66 6f 72 20 45 6d 61 63 |ompiled |for Emac|
|000001f0| 73 20 31 39 2e 22 29 29 | 0a 0a 28 64 65 66 76 61 |s 19."))|..(defva|
|00000200| 72 20 6b 6c 61 62 65 6c | 2d 74 79 70 65 3a 63 68 |r klabel|-type:ch|
|00000210| 61 6e 67 69 6e 67 2d 66 | 6c 61 67 20 6e 69 6c 20 |anging-f|lag nil |
|00000220| 22 5c 0a 4e 6f 6e 2d 6e | 69 6c 20 6f 6e 6c 79 20 |"\.Non-n|il only |
|00000230| 77 68 69 6c 65 20 74 68 | 65 20 6c 61 62 65 6c 20 |while th|e label |
|00000240| 74 79 70 65 20 69 6e 20 | 74 68 65 20 63 75 72 72 |type in |the curr|
|00000250| 65 6e 74 20 76 69 65 77 | 20 69 73 20 62 65 69 6e |ent view| is bein|
|00000260| 67 20 63 68 61 6e 67 65 | 64 2e 22 29 0a 28 66 73 |g change|d.").(fs|
|00000270| 65 74 20 27 6b 6c 61 62 | 65 6c 3a 63 68 69 6c 64 |et 'klab|el:child|
|00000280| 20 23 5b 28 6c 61 62 65 | 6c 29 20 22 c0 09 c2 5c | #[(labe|l) "...\|
|00000290| 22 0b 21 87 22 20 5b 6b | 76 69 65 77 3a 67 65 74 |".!." [k|view:get|
|000002a0| 2d 61 74 74 72 20 6b 76 | 69 65 77 20 6c 61 62 65 |-attr kv|iew labe|
|000002b0| 6c 2d 63 68 69 6c 64 20 | 6c 61 62 65 6c 5d 20 33 |l-child |label] 3|
|000002c0| 20 22 5c 0a 52 65 74 75 | 72 6e 20 4c 41 42 45 4c | "\.Retu|rn LABEL|
|000002d0| 27 73 20 63 68 69 6c 64 | 20 63 65 6c 6c 20 6c 61 |'s child| cell la|
|000002e0| 62 65 6c 2e 22 5d 29 0a | 28 66 73 65 74 20 27 6b |bel."]).|(fset 'k|
|000002f0| 6c 61 62 65 6c 3a 69 6e | 63 72 65 6d 65 6e 74 20 |label:in|crement |
|00000300| 23 5b 28 6c 61 62 65 6c | 29 20 22 c0 09 c2 5c 22 |#[(label|) "...\"|
|00000310| 0b 21 87 22 20 5b 6b 76 | 69 65 77 3a 67 65 74 2d |.!." [kv|iew:get-|
|00000320| 61 74 74 72 20 6b 76 69 | 65 77 20 6c 61 62 65 6c |attr kvi|ew label|
|00000330| 2d 69 6e 63 72 65 6d 65 | 6e 74 20 6c 61 62 65 6c |-increme|nt label|
|00000340| 5d 20 33 20 22 5c 0a 52 | 65 74 75 72 6e 20 4c 41 |] 3 "\.R|eturn LA|
|00000350| 42 45 4c 27 73 20 73 69 | 62 6c 69 6e 67 20 6c 61 |BEL's si|bling la|
|00000360| 62 65 6c 2e 22 5d 29 0a | 28 66 73 65 74 20 27 6b |bel."]).|(fset 'k|
|00000370| 6c 61 62 65 6c 3a 70 61 | 72 65 6e 74 20 23 5b 28 |label:pa|rent #[(|
|00000380| 6c 61 62 65 6c 29 20 22 | c0 09 c2 5c 22 0b 21 87 |label) "|...\".!.|
|00000390| 22 20 5b 6b 76 69 65 77 | 3a 67 65 74 2d 61 74 74 |" [kview|:get-att|
|000003a0| 72 20 6b 76 69 65 77 20 | 6c 61 62 65 6c 2d 70 61 |r kview |label-pa|
|000003b0| 72 65 6e 74 20 6c 61 62 | 65 6c 5d 20 33 20 22 5c |rent lab|el] 3 "\|
|000003c0| 0a 52 65 74 75 72 6e 20 | 4c 41 42 45 4c 27 73 20 |.Return |LABEL's |
|000003d0| 70 61 72 65 6e 74 20 6c | 61 62 65 6c 2e 22 5d 29 |parent l|abel."])|
|000003e0| 0a 28 66 73 65 74 20 27 | 6b 6c 61 62 65 6c 2d 74 |.(fset '|klabel-t|
|000003f0| 79 70 65 3a 63 68 69 6c | 64 20 23 5b 28 6c 61 62 |ype:chil|d #[(lab|
|00000400| 65 6c 2d 74 79 70 65 29 | 20 22 08 c1 3e ab 88 c2 |el-type)| "..>...|
|00000410| c3 c4 08 21 50 21 87 08 | c5 3d ab 82 c6 87 08 c7 |...!P!..|.=......|
|00000420| 3d ab 82 c8 87 08 c9 3d | ab 82 ca 87 cb cc 08 5c |=......=|.......\|
|00000430| 22 87 22 20 5b 6c 61 62 | 65 6c 2d 74 79 70 65 20 |"." [lab|el-type |
|00000440| 28 61 6c 70 68 61 20 6c | 65 67 61 6c 20 70 61 72 |(alpha l|egal par|
|00000450| 74 69 61 6c 2d 61 6c 70 | 68 61 29 20 69 6e 74 65 |tial-alp|ha) inte|
|00000460| 72 6e 2d 73 6f 66 74 20 | 22 6b 6c 61 62 65 6c 3a |rn-soft |"klabel:|
|00000470| 63 68 69 6c 64 2d 22 20 | 73 79 6d 62 6f 6c 2d 6e |child-" |symbol-n|
|00000480| 61 6d 65 20 6e 6f 20 28 | 6c 61 6d 62 64 61 20 28 |ame no (|lambda (|
|00000490| 6c 61 62 65 6c 29 20 22 | 22 29 20 73 74 61 72 20 |label) "|") star |
|000004a0| 23 5b 28 6c 61 62 65 6c | 29 20 22 08 c1 50 87 22 |#[(label|) "..P."|
|000004b0| 20 5b 6c 61 62 65 6c 20 | 22 2a 22 5d 20 32 5d 20 | [label |"*"] 2] |
|000004c0| 69 64 20 23 5b 28 6c 61 | 62 65 6c 29 20 22 c0 c1 |id #[(la|bel) "..|
|000004d0| 21 87 22 20 5b 65 72 72 | 6f 72 20 22 28 6b 6c 61 |!." [err|or "(kla|
|000004e0| 62 65 6c 3a 63 68 69 6c | 64 2d 69 64 29 3a 20 43 |bel:chil|d-id): C|
|000004f0| 61 6e 27 74 20 63 6f 6d | 70 75 74 65 20 63 68 69 |an't com|pute chi|
|00000500| 6c 64 20 6f 66 20 69 64 | 73 74 61 6d 70 20 6c 61 |ld of id|stamp la|
|00000510| 62 65 6c 22 5d 20 32 5d | 20 65 72 72 6f 72 20 22 |bel"] 2]| error "|
|00000520| 28 6b 6c 61 62 65 6c 2d | 74 79 70 65 3a 63 68 69 |(klabel-|type:chi|
|00000530| 6c 64 29 3a 20 49 6e 76 | 61 6c 69 64 20 6c 61 62 |ld): Inv|alid lab|
|00000540| 65 6c 20 74 79 70 65 20 | 73 65 74 74 69 6e 67 3a |el type |setting:|
|00000550| 20 27 25 73 27 22 5d 20 | 34 20 22 5c 0a 52 65 74 | '%s'"] |4 "\.Ret|
|00000560| 75 72 6e 20 66 75 6e 63 | 74 69 6f 6e 20 77 68 69 |urn func|tion whi|
|00000570| 63 68 20 63 6f 6d 70 75 | 74 65 73 20 63 68 69 6c |ch compu|tes chil|
|00000580| 64 20 63 65 6c 6c 20 6c | 61 62 65 6c 20 6f 66 20 |d cell l|abel of |
|00000590| 4c 41 42 45 4c 2d 54 59 | 50 45 2e 22 5d 29 0a 28 |LABEL-TY|PE."]).(|
|000005a0| 66 73 65 74 20 27 6b 6c | 61 62 65 6c 2d 74 79 70 |fset 'kl|abel-typ|
|000005b0| 65 3a 69 6e 63 72 65 6d | 65 6e 74 20 23 5b 28 6c |e:increm|ent #[(l|
|000005c0| 61 62 65 6c 2d 74 79 70 | 65 29 20 22 08 c1 3e ab |abel-typ|e) "..>.|
|000005d0| 88 c2 c3 c4 08 21 50 21 | 87 08 c5 3d ab 82 c6 87 |.....!P!|...=....|
|000005e0| 08 c7 3d ab 82 c8 87 08 | c9 3d ab 82 ca 87 cb cc |..=.....|.=......|
|000005f0| 08 5c 22 87 22 20 5b 6c | 61 62 65 6c 2d 74 79 70 |.\"." [l|abel-typ|
|00000600| 65 20 28 61 6c 70 68 61 | 20 6c 65 67 61 6c 20 70 |e (alpha| legal p|
|00000610| 61 72 74 69 61 6c 2d 61 | 6c 70 68 61 29 20 69 6e |artial-a|lpha) in|
|00000620| 74 65 72 6e 2d 73 6f 66 | 74 20 22 6b 6c 61 62 65 |tern-sof|t "klabe|
|00000630| 6c 3a 69 6e 63 72 65 6d | 65 6e 74 2d 22 20 73 79 |l:increm|ent-" sy|
|00000640| 6d 62 6f 6c 2d 6e 61 6d | 65 20 6e 6f 20 23 5b 28 |mbol-nam|e no #[(|
|00000650| 6c 61 62 65 6c 29 20 22 | 08 c1 9a ab 84 c2 c3 21 |label) "|.......!|
|00000660| 87 c4 87 22 20 5b 6c 61 | 62 65 6c 20 22 30 22 20 |..." [la|bel "0" |
|00000670| 65 72 72 6f 72 20 22 28 | 6b 6c 61 62 65 6c 3a 69 |error "(|klabel:i|
|00000680| 6e 63 72 65 6d 65 6e 74 | 2d 6e 6f 29 3a 20 30 20 |ncrement|-no): 0 |
|00000690| 63 65 6c 6c 20 63 61 6e | 6e 6f 74 20 68 61 76 65 |cell can|not have|
|000006a0| 20 61 20 73 69 62 6c 69 | 6e 67 22 20 22 22 5d 20 | a sibli|ng" ""] |
|000006b0| 32 5d 20 73 74 61 72 20 | 23 5b 28 6c 61 62 65 6c |2] star |#[(label|
|000006c0| 29 20 22 08 c1 98 ab 84 | c2 c3 21 87 08 87 22 20 |) ".....|..!..." |
|000006d0| 5b 6c 61 62 65 6c 20 22 | 30 22 20 65 72 72 6f 72 |[label "|0" error|
|000006e0| 20 22 28 6b 6c 61 62 65 | 6c 3a 69 6e 63 72 65 6d | "(klabe|l:increm|
|000006f0| 65 6e 74 2d 73 74 61 72 | 29 3a 20 30 20 63 65 6c |ent-star|): 0 cel|
|00000700| 6c 20 63 61 6e 6e 6f 74 | 20 68 61 76 65 20 61 20 |l cannot| have a |
|00000710| 73 69 62 6c 69 6e 67 22 | 5d 20 32 5d 20 69 64 20 |sibling"|] 2] id |
|00000720| 23 5b 28 6c 61 62 65 6c | 29 20 22 08 c1 98 ab 84 |#[(label|) ".....|
|00000730| c2 c3 21 87 c2 c4 21 87 | 22 20 5b 6c 61 62 65 6c |..!...!.|" [label|
|00000740| 20 22 30 22 20 65 72 72 | 6f 72 20 22 28 6b 6c 61 | "0" err|or "(kla|
|00000750| 62 65 6c 3a 69 6e 63 72 | 65 6d 65 6e 74 2d 6e 6f |bel:incr|ement-no|
|00000760| 29 3a 20 30 20 63 65 6c | 6c 20 63 61 6e 6e 6f 74 |): 0 cel|l cannot|
|00000770| 20 68 61 76 65 20 61 20 | 73 69 62 6c 69 6e 67 22 | have a |sibling"|
|00000780| 20 22 28 6b 6c 61 62 65 | 6c 3a 69 6e 63 72 65 6d | "(klabe|l:increm|
|00000790| 65 6e 74 2d 69 64 29 3a | 20 43 61 6e 27 74 20 63 |ent-id):| Can't c|
|000007a0| 6f 6d 70 75 74 65 20 73 | 69 62 6c 69 6e 67 20 6f |ompute s|ibling o|
|000007b0| 66 20 69 64 73 74 61 6d | 70 20 6c 61 62 65 6c 22 |f idstam|p label"|
|000007c0| 5d 20 32 5d 20 65 72 72 | 6f 72 20 22 28 6b 6c 61 |] 2] err|or "(kla|
|000007d0| 62 65 6c 3a 69 6e 63 72 | 65 6d 65 6e 74 29 3a 20 |bel:incr|ement): |
|000007e0| 49 6e 76 61 6c 69 64 20 | 6c 61 62 65 6c 20 74 79 |Invalid |label ty|
|000007f0| 70 65 20 73 65 74 74 69 | 6e 67 3a 20 27 25 73 27 |pe setti|ng: '%s'|
|00000800| 22 5d 20 34 20 22 5c 0a | 52 65 74 75 72 6e 20 66 |"] 4 "\.|Return f|
|00000810| 75 6e 63 74 69 6f 6e 20 | 77 68 69 63 68 20 63 6f |unction |which co|
|00000820| 6d 70 75 74 65 73 20 73 | 69 62 6c 69 6e 67 20 63 |mputes s|ibling c|
|00000830| 65 6c 6c 20 6c 61 62 65 | 6c 20 6f 66 20 4c 41 42 |ell labe|l of LAB|
|00000840| 45 4c 2d 54 59 50 45 2e | 22 5d 29 0a 28 66 73 65 |EL-TYPE.|"]).(fse|
|00000850| 74 20 27 6b 6c 61 62 65 | 6c 2d 74 79 70 65 3a 70 |t 'klabe|l-type:p|
|00000860| 61 72 65 6e 74 20 23 5b | 28 6c 61 62 65 6c 2d 74 |arent #[|(label-t|
|00000870| 79 70 65 29 20 22 08 c1 | 3e ab 88 c2 c3 c4 08 21 |ype) "..|>......!|
|00000880| 50 21 87 08 c5 3d ab 82 | c6 87 08 c7 3d ab 82 c8 |P!...=..|....=...|
|00000890| 87 08 c9 3d ab 82 ca 87 | 08 cb 3d ab 82 cc 87 cd |...=....|..=.....|
|000008a0| ce 08 5c 22 87 22 20 5b | 6c 61 62 65 6c 2d 74 79 |..\"." [|label-ty|
|000008b0| 70 65 20 28 61 6c 70 68 | 61 20 6c 65 67 61 6c 20 |pe (alph|a legal |
|000008c0| 70 61 72 74 69 61 6c 2d | 61 6c 70 68 61 29 20 69 |partial-|alpha) i|
|000008d0| 6e 74 65 72 6e 2d 73 6f | 66 74 20 22 6b 6c 61 62 |ntern-so|ft "klab|
|000008e0| 65 6c 3a 70 61 72 65 6e | 74 2d 22 20 73 79 6d 62 |el:paren|t-" symb|
|000008f0| 6f 6c 2d 6e 61 6d 65 20 | 6e 6f 20 23 5b 28 6c 61 |ol-name |no #[(la|
|00000900| 62 65 6c 29 20 22 08 c1 | 9a ab 84 c2 c3 21 87 c4 |bel) "..|.....!..|
|00000910| 87 22 20 5b 6c 61 62 65 | 6c 20 22 30 22 20 65 72 |." [labe|l "0" er|
|00000920| 72 6f 72 20 22 28 6b 6c | 61 62 65 6c 3a 70 61 72 |ror "(kl|abel:par|
|00000930| 65 6e 74 2d 6e 6f 29 3a | 20 30 20 63 65 6c 6c 20 |ent-no):| 0 cell |
|00000940| 63 61 6e 6e 6f 74 20 68 | 61 76 65 20 61 20 70 61 |cannot h|ave a pa|
|00000950| 72 65 6e 74 22 20 22 22 | 5d 20 32 5d 20 73 74 61 |rent" ""|] 2] sta|
|00000960| 72 20 23 5b 28 6c 61 62 | 65 6c 29 20 22 08 c1 98 |r #[(lab|el) "...|
|00000970| ab 84 c2 c3 21 87 08 c4 | 08 47 53 4f 87 22 20 5b |....!...|.GSO." [|
|00000980| 6c 61 62 65 6c 20 22 30 | 22 20 65 72 72 6f 72 20 |label "0|" error |
|00000990| 22 28 6b 6c 61 62 65 6c | 3a 70 61 72 65 6e 74 2d |"(klabel|:parent-|
|000009a0| 73 74 61 72 29 3a 20 30 | 20 63 65 6c 6c 20 63 61 |star): 0| cell ca|
|000009b0| 6e 6e 6f 74 20 68 61 76 | 65 20 61 20 70 61 72 65 |nnot hav|e a pare|
|000009c0| 6e 74 22 20 30 5d 20 33 | 5d 20 70 61 72 74 69 61 |nt" 0] 3|] partia|
|000009d0| 6c 2d 61 6c 70 68 61 20 | 23 5b 28 6c 61 62 65 6c |l-alpha |#[(label|
|000009e0| 29 20 22 c0 c1 21 87 22 | 20 5b 65 72 72 6f 72 20 |) "..!."| [error |
|000009f0| 22 28 6b 6c 61 62 65 6c | 3a 70 61 72 65 6e 74 2d |"(klabel|:parent-|
|00000a00| 70 61 72 74 69 61 6c 2d | 61 6c 70 68 61 29 3a 20 |partial-|alpha): |
|00000a10| 43 61 6e 27 74 20 63 6f | 6d 70 75 74 65 20 70 61 |Can't co|mpute pa|
|00000a20| 72 65 6e 74 20 6f 66 20 | 70 61 72 74 69 61 6c 20 |rent of |partial |
|00000a30| 61 6c 70 68 61 20 6c 61 | 62 65 6c 22 5d 20 32 5d |alpha la|bel"] 2]|
|00000a40| 20 69 64 20 23 5b 28 6c | 61 62 65 6c 29 20 22 c0 | id #[(l|abel) ".|
|00000a50| c1 21 87 22 20 5b 65 72 | 72 6f 72 20 22 28 6b 6c |.!." [er|ror "(kl|
|00000a60| 61 62 65 6c 3a 70 61 72 | 65 6e 74 2d 69 64 29 3a |abel:par|ent-id):|
|00000a70| 20 43 61 6e 27 74 20 63 | 6f 6d 70 75 74 65 20 70 | Can't c|ompute p|
|00000a80| 61 72 65 6e 74 20 6f 66 | 20 69 64 73 74 61 6d 70 |arent of| idstamp|
|00000a90| 20 6c 61 62 65 6c 22 5d | 20 32 5d 20 65 72 72 6f | label"]| 2] erro|
|00000aa0| 72 20 22 28 6b 6c 61 62 | 65 6c 2d 74 79 70 65 3a |r "(klab|el-type:|
|00000ab0| 70 61 72 65 6e 74 29 3a | 20 49 6e 76 61 6c 69 64 |parent):| Invalid|
|00000ac0| 20 6c 61 62 65 6c 20 74 | 79 70 65 20 73 65 74 74 | label t|ype sett|
|00000ad0| 69 6e 67 3a 20 27 25 73 | 27 22 5d 20 34 20 22 5c |ing: '%s|'"] 4 "\|
|00000ae0| 0a 52 65 74 75 72 6e 20 | 66 75 6e 63 74 69 6f 6e |.Return |function|
|00000af0| 20 77 68 69 63 68 20 63 | 6f 6d 70 75 74 65 73 20 | which c|omputes |
|00000b00| 70 61 72 65 6e 74 20 63 | 65 6c 6c 20 6c 61 62 65 |parent c|ell labe|
|00000b10| 6c 20 6f 66 20 4c 41 42 | 45 4c 2d 54 59 50 45 2e |l of LAB|EL-TYPE.|
|00000b20| 22 5d 29 0a 28 66 73 65 | 74 20 27 6b 6c 61 62 65 |"]).(fse|t 'klabe|
|00000b30| 6c 3a 63 68 69 6c 64 2d | 61 6c 70 68 61 20 23 5b |l:child-|alpha #[|
|00000b40| 28 6c 61 62 65 6c 29 20 | 22 08 c1 98 ac 85 08 c2 |(label) |".......|
|00000b50| 98 ab 82 c3 87 08 89 89 | 47 53 48 c4 57 ab 83 c5 |........|GSH.W...|
|00000b60| aa 81 c3 50 87 22 20 5b | 6c 61 62 65 6c 20 22 30 |...P." [|label "0|
|00000b70| 22 20 22 22 20 22 31 22 | 20 39 37 20 22 61 22 5d |" "" "1"| 97 "a"]|
|00000b80| 20 33 20 22 5c 0a 52 65 | 74 75 72 6e 20 6c 61 62 | 3 "\.Re|turn lab|
|00000b90| 65 6c 20 66 6f 72 20 66 | 69 72 73 74 20 63 68 69 |el for f|irst chi|
|00000ba0| 6c 64 20 6f 66 20 61 6c | 70 68 61 20 4c 41 42 45 |ld of al|pha LABE|
|00000bb0| 4c 2e 22 5d 29 0a 28 66 | 73 65 74 20 27 6b 6c 61 |L."]).(f|set 'kla|
|00000bc0| 62 65 6c 3a 69 6e 63 72 | 65 6d 65 6e 74 2d 61 6c |bel:incr|ement-al|
|00000bd0| 70 68 61 20 23 5b 28 61 | 6c 70 68 61 2d 6c 61 62 |pha #[(a|lpha-lab|
|00000be0| 65 6c 29 20 22 08 c1 98 | ab 84 c2 c3 21 87 c4 08 |el) "...|....!...|
|00000bf0| 21 1d 08 c6 0d 47 5b 4f | c7 0d c8 5c 22 50 29 87 |!....G[O|...\"P).|
|00000c00| 22 20 5b 61 6c 70 68 61 | 2d 6c 61 62 65 6c 20 22 |" [alpha|-label "|
|00000c10| 30 22 20 65 72 72 6f 72 | 20 22 28 6b 6c 61 62 65 |0" error| "(klabe|
|00000c20| 6c 3a 69 6e 63 72 65 6d | 65 6e 74 2d 61 6c 70 68 |l:increm|ent-alph|
|00000c30| 61 29 3a 20 30 20 63 65 | 6c 6c 20 63 61 6e 6e 6f |a): 0 ce|ll canno|
|00000c40| 74 20 68 61 76 65 20 61 | 20 73 69 62 6c 69 6e 67 |t have a| sibling|
|00000c50| 22 20 6b 6c 61 62 65 6c | 3a 74 6f 2d 6b 6f 74 6c |" klabel|:to-kotl|
|00000c60| 2d 6c 61 62 65 6c 20 6b | 6f 74 6c 2d 6c 61 62 65 |-label k|otl-labe|
|00000c70| 6c 20 30 20 6b 6f 74 6c | 2d 6c 61 62 65 6c 3a 69 |l 0 kotl|-label:i|
|00000c80| 6e 63 72 65 6d 65 6e 74 | 20 31 5d 20 34 20 22 5c |ncrement| 1] 4 "\|
|00000c90| 0a 49 6e 63 72 65 6d 65 | 6e 74 20 66 75 6c 6c 20 |.Increme|nt full |
|00000ca0| 41 4c 50 48 41 2d 4c 41 | 42 45 4c 20 62 79 20 6f |ALPHA-LA|BEL by o|
|00000cb0| 6e 65 20 61 6e 64 20 72 | 65 74 75 72 6e 2e 22 5d |ne and r|eturn."]|
|00000cc0| 29 0a 28 66 73 65 74 20 | 27 6b 6c 61 62 65 6c 3a |).(fset |'klabel:|
|00000cd0| 70 61 72 65 6e 74 2d 61 | 6c 70 68 61 20 23 5b 28 |parent-a|lpha #[(|
|00000ce0| 6c 61 62 65 6c 29 20 22 | 08 c1 98 ac 85 08 c2 98 |label) "|........|
|00000cf0| ab 84 c3 c4 21 87 c5 08 | 21 ab 82 c1 87 08 c6 c7 |....!...|!.......|
|00000d00| 08 21 47 5b 4f 87 22 20 | 5b 6c 61 62 65 6c 20 22 |.!G[O." |[label "|
|00000d10| 30 22 20 22 22 20 65 72 | 72 6f 72 20 22 28 6b 6c |0" "" er|ror "(kl|
|00000d20| 61 62 65 6c 3a 70 61 72 | 65 6e 74 2d 61 6c 70 68 |abel:par|ent-alph|
|00000d30| 61 29 3a 20 30 20 63 65 | 6c 6c 20 63 61 6e 6e 6f |a): 0 ce|ll canno|
|00000d40| 74 20 68 61 76 65 20 61 | 20 70 61 72 65 6e 74 22 |t have a| parent"|
|00000d50| 20 6b 6f 74 6c 2d 6c 61 | 62 65 6c 3a 69 6e 74 65 | kotl-la|bel:inte|
|00000d60| 67 65 72 2d 70 20 30 20 | 6b 6c 61 62 65 6c 3a 74 |ger-p 0 |klabel:t|
|00000d70| 6f 2d 6b 6f 74 6c 2d 6c | 61 62 65 6c 5d 20 34 20 |o-kotl-l|abel] 4 |
|00000d80| 22 5c 0a 52 65 74 75 72 | 6e 20 70 61 72 65 6e 74 |"\.Retur|n parent|
|00000d90| 20 6c 61 62 65 6c 20 6f | 66 20 66 75 6c 6c 20 61 | label o|f full a|
|00000da0| 6c 70 68 61 20 4c 41 42 | 45 4c 2e 22 5d 29 0a 28 |lpha LAB|EL."]).(|
|00000db0| 66 73 65 74 20 27 6b 6c | 61 62 65 6c 3a 63 68 69 |fset 'kl|abel:chi|
|00000dc0| 6c 64 2d 70 61 72 74 69 | 61 6c 2d 61 6c 70 68 61 |ld-parti|al-alpha|
|00000dd0| 20 27 6b 6f 74 6c 2d 6c | 61 62 65 6c 3a 63 68 69 | 'kotl-l|abel:chi|
|00000de0| 6c 64 29 0a 28 66 73 65 | 74 20 27 6b 6c 61 62 65 |ld).(fse|t 'klabe|
|00000df0| 6c 3a 69 6e 63 72 65 6d | 65 6e 74 2d 70 61 72 74 |l:increm|ent-part|
|00000e00| 69 61 6c 2d 61 6c 70 68 | 61 20 23 5b 28 6c 61 62 |ial-alph|a #[(lab|
|00000e10| 65 6c 29 20 22 08 c1 98 | ab 84 c2 c3 21 87 c4 08 |el) "...|....!...|
|00000e20| c5 5c 22 87 22 20 5b 6c | 61 62 65 6c 20 22 30 22 |.\"." [l|abel "0"|
|00000e30| 20 65 72 72 6f 72 20 22 | 28 6b 6c 61 62 65 6c 3a | error "|(klabel:|
|00000e40| 69 6e 63 72 65 6d 65 6e | 74 2d 70 61 72 74 69 61 |incremen|t-partia|
|00000e50| 6c 2d 61 6c 70 68 61 29 | 3a 20 30 20 63 65 6c 6c |l-alpha)|: 0 cell|
|00000e60| 20 63 61 6e 6e 6f 74 20 | 68 61 76 65 20 61 20 73 | cannot |have a s|
|00000e70| 69 62 6c 69 6e 67 22 20 | 6b 6f 74 6c 2d 6c 61 62 |ibling" |kotl-lab|
|00000e80| 65 6c 3a 69 6e 63 72 65 | 6d 65 6e 74 20 31 5d 20 |el:incre|ment 1] |
|00000e90| 33 20 22 5c 0a 49 6e 63 | 72 65 6d 65 6e 74 20 70 |3 "\.Inc|rement p|
|00000ea0| 61 72 74 69 61 6c 20 61 | 6c 70 68 61 20 4c 41 42 |artial a|lpha LAB|
|00000eb0| 45 4c 20 62 79 20 6f 6e | 65 20 61 6e 64 20 72 65 |EL by on|e and re|
|00000ec0| 74 75 72 6e 2e 22 5d 29 | 0a 28 66 73 65 74 20 27 |turn."])|.(fset '|
|00000ed0| 6b 6c 61 62 65 6c 3a 63 | 68 69 6c 64 2d 6c 65 67 |klabel:c|hild-leg|
|00000ee0| 61 6c 20 23 5b 28 6c 61 | 62 65 6c 29 20 22 08 c1 |al #[(la|bel) "..|
|00000ef0| 98 ac 85 08 c2 98 ab 82 | c3 87 08 c4 50 87 22 20 |........|....P." |
|00000f00| 5b 6c 61 62 65 6c 20 22 | 30 22 20 22 22 20 22 31 |[label "|0" "" "1|
|00000f10| 22 20 22 2e 31 22 5d 20 | 32 20 22 5c 0a 52 65 74 |" ".1"] |2 "\.Ret|
|00000f20| 75 72 6e 20 6c 61 62 65 | 6c 20 66 6f 72 20 66 69 |urn labe|l for fi|
|00000f30| 72 73 74 20 63 68 69 6c | 64 20 6f 66 20 6c 65 67 |rst chil|d of leg|
|00000f40| 61 6c 20 4c 41 42 45 4c | 2e 22 5d 29 0a 28 66 73 |al LABEL|."]).(fs|
|00000f50| 65 74 20 27 6b 6c 61 62 | 65 6c 3a 69 6e 63 72 65 |et 'klab|el:incre|
|00000f60| 6d 65 6e 74 2d 6c 65 67 | 61 6c 20 23 5b 28 6c 61 |ment-leg|al #[(la|
|00000f70| 62 65 6c 29 20 22 08 c1 | 98 ab 84 c2 c3 21 87 c4 |bel) "..|.....!..|
|00000f80| c5 08 5c 22 ab 91 08 c6 | 89 94 4f c7 c8 08 c6 94 |..\"....|..O.....|
|00000f90| c9 4f 21 54 21 50 87 c2 | ca 08 5c 22 87 22 20 5b |.O!T!P..|..\"." [|
|00000fa0| 6c 61 62 65 6c 20 22 30 | 22 20 65 72 72 6f 72 20 |label "0|" error |
|00000fb0| 22 28 6b 6c 61 62 65 6c | 3a 69 6e 63 72 65 6d 65 |"(klabel|:increme|
|00000fc0| 6e 74 2d 6c 65 67 61 6c | 29 3a 20 30 20 63 65 6c |nt-legal|): 0 cel|
|00000fd0| 6c 20 63 61 6e 6e 6f 74 | 20 68 61 76 65 20 61 20 |l cannot| have a |
|00000fe0| 73 69 62 6c 69 6e 67 22 | 20 73 74 72 69 6e 67 2d |sibling"| string-|
|00000ff0| 6d 61 74 63 68 20 22 5b | 30 2d 39 5d 2b 24 22 20 |match "[|0-9]+$" |
|00001000| 30 20 69 6e 74 2d 74 6f | 2d 73 74 72 69 6e 67 20 |0 int-to|-string |
|00001010| 73 74 72 69 6e 67 2d 74 | 6f 2d 69 6e 74 20 6e 69 |string-t|o-int ni|
|00001020| 6c 20 22 28 6b 6c 61 62 | 65 6c 3a 69 6e 63 72 65 |l "(klab|el:incre|
|00001030| 6d 65 6e 74 2d 6c 65 67 | 61 6c 29 3a 20 49 6e 76 |ment-leg|al): Inv|
|00001040| 61 6c 69 64 20 6c 61 62 | 65 6c 2c 20 27 25 73 27 |alid lab|el, '%s'|
|00001050| 22 5d 20 36 20 22 5c 0a | 49 6e 63 72 65 6d 65 6e |"] 6 "\.|Incremen|
|00001060| 74 20 66 75 6c 6c 20 6c | 65 67 61 6c 20 4c 41 42 |t full l|egal LAB|
|00001070| 45 4c 20 62 79 20 6f 6e | 65 20 61 6e 64 20 72 65 |EL by on|e and re|
|00001080| 74 75 72 6e 2e 22 5d 29 | 0a 28 66 73 65 74 20 27 |turn."])|.(fset '|
|00001090| 6b 6c 61 62 65 6c 3a 70 | 61 72 65 6e 74 2d 6c 65 |klabel:p|arent-le|
|000010a0| 67 61 6c 20 23 5b 28 6c | 61 62 65 6c 29 20 22 08 |gal #[(l|abel) ".|
|000010b0| c1 98 ac 85 08 c2 98 ab | 84 c3 c4 21 87 c5 08 21 |........|...!...!|
|000010c0| ab 82 c1 87 08 c6 c7 c8 | 08 5c 22 4f 87 22 20 5b |........|.\"O." [|
|000010d0| 6c 61 62 65 6c 20 22 30 | 22 20 22 22 20 65 72 72 |label "0|" "" err|
|000010e0| 6f 72 20 22 28 6b 6c 61 | 62 65 6c 3a 70 61 72 65 |or "(kla|bel:pare|
|000010f0| 6e 74 2d 6c 65 67 61 6c | 29 3a 20 30 20 63 65 6c |nt-legal|): 0 cel|
|00001100| 6c 20 63 61 6e 6e 6f 74 | 20 68 61 76 65 20 61 20 |l cannot| have a |
|00001110| 70 61 72 65 6e 74 22 20 | 6b 6f 74 6c 2d 6c 61 62 |parent" |kotl-lab|
|00001120| 65 6c 3a 69 6e 74 65 67 | 65 72 2d 70 20 30 20 73 |el:integ|er-p 0 s|
|00001130| 74 72 69 6e 67 2d 6d 61 | 74 63 68 20 22 5c 5c 2e |tring-ma|tch "\\.|
|00001140| 5b 30 2d 39 5d 2b 24 22 | 5d 20 35 20 22 5c 0a 52 |[0-9]+$"|] 5 "\.R|
|00001150| 65 74 75 72 6e 20 70 61 | 72 65 6e 74 20 6c 61 62 |eturn pa|rent lab|
|00001160| 65 6c 20 6f 66 20 66 75 | 6c 6c 20 6c 65 67 61 6c |el of fu|ll legal|
|00001170| 20 4c 41 42 45 4c 2e 22 | 5d 29 0a 28 66 73 65 74 | LABEL."|]).(fset|
|00001180| 20 27 6b 6c 61 62 65 6c | 2d 74 79 70 65 3a 66 75 | 'klabel|-type:fu|
|00001190| 6e 63 74 69 6f 6e 20 23 | 5b 28 26 6f 70 74 69 6f |nction #|[(&optio|
|000011a0| 6e 61 6c 20 6c 61 62 65 | 6c 2d 74 79 70 65 29 20 |nal labe|l-type) |
|000011b0| 22 08 ac 84 c1 5c 6e 21 | 10 08 c3 3d ab 82 c4 87 |"....\n!|...=....|
|000011c0| 08 c5 3d ab 82 c6 87 08 | c7 3d ab 82 c8 87 c9 ca |..=.....|.=......|
|000011d0| cb 08 21 cc 51 21 87 22 | 20 5b 6c 61 62 65 6c 2d |..!.Q!."| [label-|
|000011e0| 74 79 70 65 20 6b 76 69 | 65 77 3a 6c 61 62 65 6c |type kvi|ew:label|
|000011f0| 2d 74 79 70 65 20 6b 76 | 69 65 77 20 6e 6f 20 28 |-type kv|iew no (|
|00001200| 6c 61 6d 62 64 61 20 28 | 70 72 65 76 2d 6c 61 62 |lambda (|prev-lab|
|00001210| 65 6c 20 26 6f 70 74 69 | 6f 6e 61 6c 20 63 68 69 |el &opti|onal chi|
|00001220| 6c 64 2d 70 29 20 22 22 | 29 20 70 61 72 74 69 61 |ld-p) ""|) partia|
|00001230| 6c 2d 61 6c 70 68 61 20 | 23 5b 28 70 72 65 76 2d |l-alpha |#[(prev-|
|00001240| 6c 61 62 65 6c 20 26 6f | 70 74 69 6f 6e 61 6c 20 |label &o|ptional |
|00001250| 63 68 69 6c 64 2d 70 29 | 20 22 08 ab 89 c1 5c 6e |child-p)| "....\n|
|00001260| 21 ab 82 c3 87 c4 87 c5 | 5c 6e c6 5c 22 87 22 20 |!.......|\n.\"." |
|00001270| 5b 63 68 69 6c 64 2d 70 | 20 6b 6f 74 6c 2d 6c 61 |[child-p| kotl-la|
|00001280| 62 65 6c 3a 69 6e 74 65 | 67 65 72 2d 70 20 70 72 |bel:inte|ger-p pr|
|00001290| 65 76 2d 6c 61 62 65 6c | 20 22 61 22 20 22 31 22 |ev-label| "a" "1"|
|000012a0| 20 6b 6f 74 6c 2d 6c 61 | 62 65 6c 3a 69 6e 63 72 | kotl-la|bel:incr|
|000012b0| 65 6d 65 6e 74 20 31 5d | 20 33 5d 20 69 64 20 23 |ement 1]| 3] id #|
|000012c0| 5b 28 70 72 65 76 2d 6c | 61 62 65 6c 20 26 6f 70 |[(prev-l|abel &op|
|000012d0| 74 69 6f 6e 61 6c 20 63 | 68 69 6c 64 2d 70 29 20 |tional c|hild-p) |
|000012e0| 22 c0 c1 c2 20 5c 22 87 | 22 20 5b 66 6f 72 6d 61 |"... \".|" [forma|
|000012f0| 74 20 22 30 25 64 22 20 | 6b 63 65 6c 6c 2d 76 69 |t "0%d" |kcell-vi|
|00001300| 65 77 3a 69 64 73 74 61 | 6d 70 5d 20 33 5d 20 69 |ew:idsta|mp] 3] i|
|00001310| 6e 74 65 72 6e 2d 73 6f | 66 74 20 22 6b 6c 61 62 |ntern-so|ft "klab|
|00001320| 65 6c 2d 74 79 70 65 3a | 22 20 73 79 6d 62 6f 6c |el-type:|" symbol|
|00001330| 2d 6e 61 6d 65 20 22 2d | 6c 61 62 65 6c 22 5d 20 |-name "-|label"] |
|00001340| 34 20 22 5c 0a 52 65 74 | 75 72 6e 20 66 75 6e 63 |4 "\.Ret|urn func|
|00001350| 74 69 6f 6e 20 77 68 69 | 63 68 20 77 69 6c 6c 20 |tion whi|ch will |
|00001360| 72 65 74 75 72 6e 20 64 | 69 73 70 6c 61 79 20 6c |return d|isplay l|
|00001370| 61 62 65 6c 20 66 6f 72 | 20 63 75 72 72 65 6e 74 |abel for| current|
|00001380| 20 63 65 6c 6c 2e 0a 4c | 61 62 65 6c 20 66 6f 72 | cell..L|abel for|
|00001390| 6d 61 74 20 69 73 20 6f | 70 74 69 6f 6e 61 6c 20 |mat is o|ptional |
|000013a0| 4c 41 42 45 4c 2d 54 59 | 50 45 20 6f 72 20 74 68 |LABEL-TY|PE or th|
|000013b0| 65 20 64 65 66 61 75 6c | 74 20 6c 61 62 65 6c 20 |e defaul|t label |
|000013c0| 74 79 70 65 20 66 6f 72 | 20 74 68 65 20 63 75 72 |type for| the cur|
|000013d0| 72 65 6e 74 20 76 69 65 | 77 2e 0a 0a 46 75 6e 63 |rent vie|w...Func|
|000013e0| 74 69 6f 6e 20 73 69 67 | 6e 61 74 75 72 65 20 69 |tion sig|nature i|
|000013f0| 73 3a 20 28 66 75 6e 63 | 20 70 72 65 76 2d 6c 61 |s: (func| prev-la|
|00001400| 62 65 6c 20 26 6f 70 74 | 69 6f 6e 61 6c 20 63 68 |bel &opt|ional ch|
|00001410| 69 6c 64 2d 70 29 2c 20 | 77 68 65 72 65 20 70 72 |ild-p), |where pr|
|00001420| 65 76 2d 6c 61 62 65 6c | 0a 69 73 20 74 68 65 20 |ev-label|.is the |
|00001430| 64 69 73 70 6c 61 79 20 | 6c 61 62 65 6c 20 6f 66 |display |label of|
|00001440| 20 74 68 65 20 63 65 6c | 6c 20 70 72 65 63 65 64 | the cel|l preced|
|00001450| 69 6e 67 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |ing the |current |
|00001460| 6f 6e 65 20 61 6e 64 20 | 63 68 69 6c 64 2d 70 20 |one and |child-p |
|00001470| 69 73 0a 6e 6f 6e 2d 6e | 69 6c 20 69 66 20 63 65 |is.non-n|il if ce|
|00001480| 6c 6c 20 69 73 20 74 6f | 20 62 65 20 74 68 65 20 |ll is to| be the |
|00001490| 63 68 69 6c 64 20 6f 66 | 20 74 68 65 20 70 72 65 |child of| the pre|
|000014a0| 63 65 64 69 6e 67 20 63 | 65 6c 6c 2e 22 5d 29 0a |ceding c|ell."]).|
|000014b0| 28 66 73 65 74 20 27 6b | 6c 61 62 65 6c 2d 74 79 |(fset 'k|label-ty|
|000014c0| 70 65 3a 61 6c 70 68 61 | 2d 6c 61 62 65 6c 20 23 |pe:alpha|-label #|
|000014d0| 5b 28 70 72 65 76 2d 6c | 61 62 65 6c 20 26 6f 70 |[(prev-l|abel &op|
|000014e0| 74 69 6f 6e 61 6c 20 63 | 68 69 6c 64 2d 70 29 20 |tional c|hild-p) |
|000014f0| 22 08 ab 84 c1 5c 6e 21 | 87 c3 5c 6e 21 87 22 20 |"....\n!|..\n!." |
|00001500| 5b 63 68 69 6c 64 2d 70 | 20 6b 6c 61 62 65 6c 3a |[child-p| klabel:|
|00001510| 63 68 69 6c 64 20 70 72 | 65 76 2d 6c 61 62 65 6c |child pr|ev-label|
|00001520| 20 6b 6c 61 62 65 6c 3a | 69 6e 63 72 65 6d 65 6e | klabel:|incremen|
|00001530| 74 5d 20 32 20 22 5c 0a | 52 65 74 75 72 6e 20 66 |t] 2 "\.|Return f|
|00001540| 75 6c 6c 20 61 6c 70 68 | 61 6e 75 6d 65 72 69 63 |ull alph|anumeric|
|00001550| 20 6c 61 62 65 6c 2c 20 | 65 2e 67 2e 20 31 61 32 | label, |e.g. 1a2|
|00001560| 2c 20 66 6f 72 20 63 65 | 6c 6c 20 66 6f 6c 6c 6f |, for ce|ll follo|
|00001570| 77 69 6e 67 20 50 52 45 | 56 2d 4c 41 42 45 4c 27 |wing PRE|V-LABEL'|
|00001580| 73 20 63 65 6c 6c 2e 0a | 57 69 74 68 20 6f 70 74 |s cell..|With opt|
|00001590| 69 6f 6e 61 6c 20 43 48 | 49 4c 44 2d 50 2c 20 72 |ional CH|ILD-P, r|
|000015a0| 65 74 75 72 6e 20 6c 61 | 62 65 6c 20 66 6f 72 20 |eturn la|bel for |
|000015b0| 66 69 72 73 74 20 63 68 | 69 6c 64 20 63 65 6c 6c |first ch|ild cell|
|000015c0| 20 6f 66 20 50 52 45 56 | 2d 4c 41 42 45 4c 20 63 | of PREV|-LABEL c|
|000015d0| 65 6c 6c 2e 22 5d 29 0a | 28 66 73 65 74 20 27 6b |ell."]).|(fset 'k|
|000015e0| 6c 61 62 65 6c 2d 74 79 | 70 65 3a 6c 65 67 61 6c |label-ty|pe:legal|
|000015f0| 2d 6c 61 62 65 6c 20 23 | 5b 28 70 72 65 76 2d 6c |-label #|[(prev-l|
|00001600| 61 62 65 6c 20 26 6f 70 | 74 69 6f 6e 61 6c 20 63 |abel &op|tional c|
|00001610| 68 69 6c 64 2d 70 29 20 | 22 08 ab 8b 09 c2 98 ab |hild-p) |".......|
|00001620| 82 c3 87 09 c4 50 87 c5 | c6 09 5c 22 1e 07 09 0e |.....P..|..\"....|
|00001630| 07 c8 4f 1e 09 ca cb 0e | 09 21 54 21 1e 0c 0e 07 |..O.....|.!T!....|
|00001640| 09 9a ab 84 0e 0c aa 88 | 09 cd 0e 07 4f 0e 0c 50 |........|....O..P|
|00001650| 2b 87 22 20 5b 63 68 69 | 6c 64 2d 70 20 70 72 65 |+." [chi|ld-p pre|
|00001660| 76 2d 6c 61 62 65 6c 20 | 22 30 22 20 22 31 22 20 |v-label |"0" "1" |
|00001670| 22 2e 31 22 20 73 74 72 | 69 6e 67 2d 6d 61 74 63 |".1" str|ing-matc|
|00001680| 68 20 22 5b 30 2d 39 5d | 2b 24 22 20 6c 61 73 74 |h "[0-9]|+$" last|
|00001690| 2d 70 61 72 74 20 6e 69 | 6c 20 70 61 72 74 69 61 |-part ni|l partia|
|000016a0| 6c 2d 6c 65 67 61 6c 20 | 6b 6f 74 6c 2d 6c 61 62 |l-legal |kotl-lab|
|000016b0| 65 6c 3a 63 72 65 61 74 | 65 20 73 74 72 69 6e 67 |el:creat|e string|
|000016c0| 2d 74 6f 2d 69 6e 74 20 | 6e 65 78 74 20 30 5d 20 |-to-int |next 0] |
|000016d0| 33 20 22 5c 0a 52 65 74 | 75 72 6e 20 66 75 6c 6c |3 "\.Ret|urn full|
|000016e0| 20 6c 65 67 61 6c 20 6c | 61 62 65 6c 2c 20 65 2e | legal l|abel, e.|
|000016f0| 67 2e 20 31 2e 31 2e 32 | 2c 20 66 6f 72 20 63 65 |g. 1.1.2|, for ce|
|00001700| 6c 6c 20 66 6f 6c 6c 6f | 77 69 6e 67 20 50 52 45 |ll follo|wing PRE|
|00001710| 56 2d 4c 41 42 45 4c 27 | 73 20 63 65 6c 6c 2e 0a |V-LABEL'|s cell..|
|00001720| 57 69 74 68 20 6f 70 74 | 69 6f 6e 61 6c 20 43 48 |With opt|ional CH|
|00001730| 49 4c 44 2d 50 2c 20 72 | 65 74 75 72 6e 20 6c 61 |ILD-P, r|eturn la|
|00001740| 62 65 6c 20 66 6f 72 20 | 66 69 72 73 74 20 63 68 |bel for |first ch|
|00001750| 69 6c 64 20 63 65 6c 6c | 20 6f 66 20 50 52 45 56 |ild cell| of PREV|
|00001760| 2d 4c 41 42 45 4c 20 63 | 65 6c 6c 2e 22 5d 29 0a |-LABEL c|ell."]).|
|00001770| 28 66 73 65 74 20 27 6b | 6c 61 62 65 6c 2d 74 79 |(fset 'k|label-ty|
|00001780| 70 65 3a 74 6f 2d 6c 61 | 62 65 6c 2d 65 6e 64 20 |pe:to-la|bel-end |
|00001790| 23 5b 28 26 6f 70 74 69 | 6f 6e 61 6c 20 6c 61 62 |#[(&opti|onal lab|
|000017a0| 65 6c 2d 74 79 70 65 29 | 20 22 08 ac 84 c1 5c 6e |el-type)| "....\n|
|000017b0| 21 10 08 c3 c4 42 c5 c6 | 42 c7 c8 42 c9 ca 42 cb |!....B..|B..B..B.|
|000017c0| cc 42 cd ce 42 af 06 9e | 41 ae 84 cf d0 08 5c 22 |.B..B...|A.....\"|
|000017d0| 87 22 20 5b 6c 61 62 65 | 6c 2d 74 79 70 65 20 6b |." [labe|l-type k|
|000017e0| 76 69 65 77 3a 6c 61 62 | 65 6c 2d 74 79 70 65 20 |view:lab|el-type |
|000017f0| 6b 76 69 65 77 20 61 6c | 70 68 61 20 23 5b 6e 69 |kview al|pha #[ni|
|00001800| 6c 20 22 c0 c1 c2 c3 23 | ad 83 c4 95 62 87 22 20 |l "....#|....b." |
|00001810| 5b 72 65 2d 73 65 61 72 | 63 68 2d 62 61 63 6b 77 |[re-sear|ch-backw|
|00001820| 61 72 64 20 22 5c 5c 28 | 5c 5c 60 5c 5c 7c 5b 5c |ard "\\(|\\`\\|[\|
|00001830| 6e 0d 5d 5b 5c 6e 0d 5d | 5c 5c 29 5b 20 09 5d 2a |n.][\n.]|\\)[ .]*|
|00001840| 5b 31 2d 39 5d 5b 30 2d | 39 61 2d 7a 41 2d 5a 5d |[1-9][0-|9a-zA-Z]|
|00001850| 2a 22 20 6e 69 6c 20 74 | 20 30 5d 20 34 5d 20 6c |*" nil t| 0] 4] l|
|00001860| 65 67 61 6c 20 23 5b 6e | 69 6c 20 22 c0 c1 c2 c3 |egal #[n|il "....|
|00001870| 23 ad 83 c4 95 62 87 22 | 20 5b 72 65 2d 73 65 61 |#....b."| [re-sea|
|00001880| 72 63 68 2d 62 61 63 6b | 77 61 72 64 20 22 5c 5c |rch-back|ward "\\|
|00001890| 28 5c 5c 60 5c 5c 7c 5b | 5c 6e 0d 5d 5b 5c 6e 0d |(\\`\\|[|\n.][\n.|
|000018a0| 5d 5c 5c 29 5b 20 09 5d | 2a 5b 30 2d 39 5d 2b 5c |]\\)[ .]|*[0-9]+\|
|000018b0| 5c 28 5c 5c 2e 5b 30 2d | 39 5d 2b 5c 5c 29 2a 22 |\(\\.[0-|9]+\\)*"|
|000018c0| 20 6e 69 6c 20 74 20 30 | 5d 20 34 5d 20 73 74 61 | nil t 0|] 4] sta|
|000018d0| 72 20 23 5b 6e 69 6c 20 | 22 c0 c1 c2 c3 23 ad 83 |r #[nil |"....#..|
|000018e0| c4 95 62 87 22 20 5b 72 | 65 2d 73 65 61 72 63 68 |..b." [r|e-search|
|000018f0| 2d 62 61 63 6b 77 61 72 | 64 20 22 5c 5c 28 5c 5c |-backwar|d "\\(\\|
|00001900| 60 5c 5c 7c 5b 5c 6e 0d | 5d 5b 5c 6e 0d 5d 5c 5c |`\\|[\n.|][\n.]\\|
|00001910| 29 5b 20 09 5d 2a 5c 5c | 2a 2b 22 20 6e 69 6c 20 |)[ .]*\\|*+" nil |
|00001920| 74 20 30 5d 20 34 5d 20 | 6e 6f 20 23 5b 6e 69 6c |t 0] 4] |no #[nil|
|00001930| 20 22 08 ac 8b 09 c2 99 | ab 86 c3 60 c4 5c 22 aa | "......|...`.\".|
|00001940| 86 c3 60 c4 5c 22 c5 5a | 62 87 22 20 5b 68 79 70 |..`.\".Z|b." [hyp|
|00001950| 65 72 62 3a 6c 65 6d 61 | 63 73 2d 70 20 65 6d 61 |erb:lema|cs-p ema|
|00001960| 63 73 2d 76 65 72 73 69 | 6f 6e 20 22 31 39 2e 32 |cs-versi|on "19.2|
|00001970| 32 22 20 6b 70 72 6f 70 | 65 72 74 79 3a 70 72 65 |2" kprop|erty:pre|
|00001980| 76 69 6f 75 73 2d 73 69 | 6e 67 6c 65 2d 63 68 61 |vious-si|ngle-cha|
|00001990| 6e 67 65 20 6b 63 65 6c | 6c 20 31 5d 20 33 5d 20 |nge kcel|l 1] 3] |
|000019a0| 70 61 72 74 69 61 6c 2d | 61 6c 70 68 61 20 23 5b |partial-|alpha #[|
|000019b0| 6e 69 6c 20 22 c0 c1 c2 | c3 23 ad 83 c4 95 62 87 |nil "...|.#....b.|
|000019c0| 22 20 5b 72 65 2d 73 65 | 61 72 63 68 2d 62 61 63 |" [re-se|arch-bac|
|000019d0| 6b 77 61 72 64 20 22 5c | 5c 28 5c 5c 60 5c 5c 7c |kward "\|\(\\`\\||
|000019e0| 5b 5c 6e 0d 5d 5b 5c 6e | 0d 5d 5c 5c 29 5b 20 09 |[\n.][\n|.]\\)[ .|
|000019f0| 5d 2a 5b 30 2d 39 5d 2b | 5c 5c 7c 5b 61 2d 7a 41 |]*[0-9]+|\\|[a-zA|
|00001a00| 2d 5a 5d 2b 22 20 6e 69 | 6c 20 74 20 30 5d 20 34 |-Z]+" ni|l t 0] 4|
|00001a10| 5d 20 69 64 20 23 5b 6e | 69 6c 20 22 c0 c1 c2 c3 |] id #[n|il "....|
|00001a20| 23 ad 83 c4 95 62 87 22 | 20 5b 72 65 2d 73 65 61 |#....b."| [re-sea|
|00001a30| 72 63 68 2d 62 61 63 6b | 77 61 72 64 20 22 5c 5c |rch-back|ward "\\|
|00001a40| 28 5c 5c 60 5c 5c 7c 5b | 5c 6e 0d 5d 5b 5c 6e 0d |(\\`\\|[|\n.][\n.|
|00001a50| 5d 5c 5c 29 5b 20 09 5d | 2a 30 5b 30 2d 39 5d 2b |]\\)[ .]|*0[0-9]+|
|00001a60| 22 20 6e 69 6c 20 74 20 | 30 5d 20 34 5d 20 65 72 |" nil t |0] 4] er|
|00001a70| 72 6f 72 20 22 28 6b 76 | 69 65 77 3a 74 6f 2d 6c |ror "(kv|iew:to-l|
|00001a80| 61 62 65 6c 2d 65 6e 64 | 29 3a 20 49 6e 76 61 6c |abel-end|): Inval|
|00001a90| 69 64 20 6c 61 62 65 6c | 20 74 79 70 65 3a 20 27 |id label| type: '|
|00001aa0| 25 73 27 22 5d 20 38 20 | 22 5c 0a 52 65 74 75 72 |%s'"] 8 |"\.Retur|
|00001ab0| 6e 20 66 75 6e 63 74 69 | 6f 6e 20 77 68 69 63 68 |n functi|on which|
|00001ac0| 20 77 69 6c 6c 20 73 65 | 61 72 63 68 20 62 61 63 | will se|arch bac|
|00001ad0| 6b 77 61 72 64 20 74 6f | 20 61 20 74 68 65 20 65 |kward to| a the e|
|00001ae0| 6e 64 20 6f 66 20 61 20 | 63 65 6c 6c 27 73 20 6c |nd of a |cell's l|
|00001af0| 61 62 65 6c 2e 0a 4c 61 | 62 65 6c 20 66 6f 72 6d |abel..La|bel form|
|00001b00| 61 74 20 69 73 20 6f 70 | 74 69 6f 6e 61 6c 20 4c |at is op|tional L|
|00001b10| 41 42 45 4c 2d 54 59 50 | 45 20 6f 72 20 74 68 65 |ABEL-TYP|E or the|
|00001b20| 20 64 65 66 61 75 6c 74 | 20 6c 61 62 65 6c 20 74 | default| label t|
|00001b30| 79 70 65 20 66 6f 72 20 | 74 68 65 20 63 75 72 72 |ype for |the curr|
|00001b40| 65 6e 74 20 76 69 65 77 | 2e 0a 0a 46 75 6e 63 74 |ent view|...Funct|
|00001b50| 69 6f 6e 20 73 69 67 6e | 61 74 75 72 65 20 69 73 |ion sign|ature is|
|00001b60| 3a 20 28 29 2e 20 20 49 | 74 20 74 61 6b 65 73 20 |: (). I|t takes |
|00001b70| 6e 6f 20 61 72 67 75 6d | 65 6e 74 73 20 61 6e 64 |no argum|ents and|
|00001b80| 20 62 65 67 69 6e 73 20 | 74 68 65 20 73 65 61 72 | begins |the sear|
|00001b90| 63 68 20 66 72 6f 6d 20 | 70 6f 69 6e 74 2e 22 5d |ch from |point."]|
|00001ba0| 29 0a 28 66 73 65 74 20 | 27 6b 6c 61 62 65 6c 2d |).(fset |'klabel-|
|00001bb0| 74 79 70 65 3a 73 74 61 | 72 2d 6c 61 62 65 6c 20 |type:sta|r-label |
|00001bc0| 23 5b 28 70 72 65 76 2d | 6c 61 62 65 6c 20 26 6f |#[(prev-|label &o|
|00001bd0| 70 74 69 6f 6e 61 6c 20 | 63 68 69 6c 64 2d 70 29 |ptional |child-p)|
|00001be0| 20 22 08 ab 84 09 c2 50 | 87 09 87 22 20 5b 63 68 | ".....P|..." [ch|
|00001bf0| 69 6c 64 2d 70 20 70 72 | 65 76 2d 6c 61 62 65 6c |ild-p pr|ev-label|
|00001c00| 20 22 2a 22 5d 20 32 20 | 22 5c 0a 52 65 74 75 72 | "*"] 2 |"\.Retur|
|00001c10| 6e 20 66 75 6c 6c 20 73 | 74 61 72 20 6c 61 62 65 |n full s|tar labe|
|00001c20| 6c 2c 20 65 2e 67 2e 20 | 2a 2a 2a 2c 20 66 6f 72 |l, e.g. |***, for|
|00001c30| 20 63 65 6c 6c 20 66 6f | 6c 6c 6f 77 69 6e 67 20 | cell fo|llowing |
|00001c40| 50 52 45 56 2d 4c 41 42 | 45 4c 27 73 20 63 65 6c |PREV-LAB|EL's cel|
|00001c50| 6c 2e 0a 57 69 74 68 20 | 6f 70 74 69 6f 6e 61 6c |l..With |optional|
|00001c60| 20 43 48 49 4c 44 2d 50 | 2c 20 72 65 74 75 72 6e | CHILD-P|, return|
|00001c70| 20 6c 61 62 65 6c 20 66 | 6f 72 20 66 69 72 73 74 | label f|or first|
|00001c80| 20 63 68 69 6c 64 20 63 | 65 6c 6c 20 6f 66 20 50 | child c|ell of P|
|00001c90| 52 45 56 2d 4c 41 42 45 | 4c 20 63 65 6c 6c 2e 22 |REV-LABE|L cell."|
|00001ca0| 5d 29 0a 28 66 73 65 74 | 20 27 6b 6c 61 62 65 6c |]).(fset| 'klabel|
|00001cb0| 2d 74 79 70 65 3a 73 65 | 74 2d 6c 61 62 65 6c 73 |-type:se|t-labels|
|00001cc0| 20 23 5b 28 6c 61 62 65 | 6c 2d 74 79 70 65 29 20 | #[(labe|l-type) |
|00001cd0| 22 c0 19 8a 65 62 88 c2 | 20 62 88 0b c4 3e ab 83 |"...eb..| b...>..|
|00001ce0| c5 aa 9d 0b c6 3d ab 84 | c7 20 aa 94 0b c8 3d ab |.....=..|. ....=.|
|00001cf0| 83 c9 aa 8c 0b ca 3d ab | 83 cb aa 84 cc cd 0b 5c |......=.|.......\|
|00001d00| 22 11 ce 1e 0f d0 0b 09 | 5c 22 2b 87 22 20 5b 6e |".......|\"+." [n|
|00001d10| 69 6c 20 66 69 72 73 74 | 2d 6c 61 62 65 6c 20 6b |il first|-label k|
|00001d20| 63 65 6c 6c 2d 76 69 65 | 77 3a 73 74 61 72 74 20 |cell-vie|w:start |
|00001d30| 6c 61 62 65 6c 2d 74 79 | 70 65 20 28 61 6c 70 68 |label-ty|pe (alph|
|00001d40| 61 20 6c 65 67 61 6c 20 | 70 61 72 74 69 61 6c 2d |a legal |partial-|
|00001d50| 61 6c 70 68 61 29 20 22 | 31 22 20 69 64 20 6b 63 |alpha) "|1" id kc|
|00001d60| 65 6c 6c 2d 76 69 65 77 | 3a 69 64 73 74 61 6d 70 |ell-view|:idstamp|
|00001d70| 20 6e 6f 20 22 22 20 73 | 74 61 72 20 22 2a 22 20 | no "" s|tar "*" |
|00001d80| 65 72 72 6f 72 20 22 28 | 6b 6c 61 62 65 6c 2d 74 |error "(|klabel-t|
|00001d90| 79 70 65 3a 73 65 74 2d | 6c 61 62 65 6c 73 29 3a |ype:set-|labels):|
|00001da0| 20 49 6e 76 61 6c 69 64 | 20 6c 61 62 65 6c 20 74 | Invalid| label t|
|00001db0| 79 70 65 3a 20 27 25 73 | 27 22 20 74 20 6b 6c 61 |ype: '%s|'" t kla|
|00001dc0| 62 65 6c 2d 74 79 70 65 | 3a 63 68 61 6e 67 69 6e |bel-type|:changin|
|00001dd0| 67 2d 66 6c 61 67 20 6b | 6c 61 62 65 6c 2d 74 79 |g-flag k|label-ty|
|00001de0| 70 65 3a 75 70 64 61 74 | 65 2d 6c 61 62 65 6c 73 |pe:updat|e-labels|
|00001df0| 2d 66 72 6f 6d 2d 70 6f | 69 6e 74 5d 20 33 20 22 |-from-po|int] 3 "|
|00001e00| 5c 0a 52 65 70 6c 61 63 | 65 20 6c 61 62 65 6c 73 |\.Replac|e labels|
|00001e10| 20 6f 66 20 61 6c 6c 20 | 63 65 6c 6c 73 20 69 6e | of all |cells in|
|00001e20| 20 63 75 72 72 65 6e 74 | 20 76 69 65 77 20 77 69 | current| view wi|
|00001e30| 74 68 20 74 68 6f 73 65 | 20 6f 66 20 4c 41 42 45 |th those| of LABE|
|00001e40| 4c 2d 54 59 50 45 20 28 | 61 20 73 79 6d 62 6f 6c |L-TYPE (|a symbol|
|00001e50| 29 2e 22 5d 29 0a 28 66 | 73 65 74 20 27 6b 6c 61 |)."]).(f|set 'kla|
|00001e60| 62 65 6c 2d 74 79 70 65 | 3a 73 65 74 2d 61 6c 70 |bel-type|:set-alp|
|00001e70| 68 61 20 23 5b 28 63 75 | 72 72 65 6e 74 2d 63 65 |ha #[(cu|rrent-ce|
|00001e80| 6c 6c 2d 6c 61 62 65 6c | 20 6c 61 62 65 6c 2d 73 |ll-label| label-s|
|00001e90| 65 70 2d 6c 65 6e 20 63 | 75 72 72 65 6e 74 2d 69 |ep-len c|urrent-i|
|00001ea0| 6e 64 65 6e 74 20 70 65 | 72 2d 6c 65 76 65 6c 2d |ndent pe|r-level-|
|00001eb0| 69 6e 64 65 6e 74 20 26 | 6f 70 74 69 6f 6e 61 6c |indent &|optional|
|00001ec0| 20 63 75 72 72 65 6e 74 | 2d 74 72 65 65 2d 6f 6e | current|-tree-on|
|00001ed0| 6c 79 29 20 22 c0 89 89 | 89 89 19 1a 1b 1c 1d 0e |ly) "...|........|
|00001ee0| 06 ab 9f c7 0e 06 21 14 | 0e 06 c8 0c 47 5b 4f 15 |......!.|....G[O.|
|00001ef0| c9 0c 21 ab 87 ca 0c 21 | 13 cb aa 85 cc 0c 21 13 |..!....!|......!.|
|00001f00| cd 12 0e 06 ad cd ce 0e | 06 0e 0f 5c 22 88 d0 0e |........|...\"...|
|00001f10| 0f 21 ab 90 d1 d2 0e 06 | 21 0e 0f 0e 13 0e 14 5c |.!......|!......\|
|00001f20| 5c 0e 14 24 88 60 11 0e | 15 ac a0 d6 c0 0e 0f 5c |\..$.`..|.......\|
|00001f30| 22 ab 99 0e 13 d7 c0 0e | 0f 5c 22 55 ab 8f 0b 54 |".......|.\"U...T|
|00001f40| 13 5c 6e 0b 21 14 0d 0c | 50 89 16 06 aa 3b 09 62 |.\n.!...|P....;.b|
|00001f50| 88 c0 89 16 06 ac 34 c0 | 2d 87 22 20 5b 6e 69 6c |......4.|-." [nil|
|00001f60| 20 6f 70 6f 69 6e 74 20 | 73 75 66 66 69 78 2d 66 | opoint |suffix-f|
|00001f70| 75 6e 63 74 69 6f 6e 20 | 73 75 66 66 69 78 2d 76 |unction |suffix-v|
|00001f80| 61 6c 20 6c 61 62 65 6c | 2d 73 75 66 66 69 78 20 |al label|-suffix |
|00001f90| 6c 61 62 65 6c 2d 70 72 | 65 66 69 78 20 63 75 72 |label-pr|efix cur|
|00001fa0| 72 65 6e 74 2d 63 65 6c | 6c 2d 6c 61 62 65 6c 20 |rent-cel|l-label |
|00001fb0| 6b 6c 61 62 65 6c 3a 74 | 6f 2d 6b 6f 74 6c 2d 6c |klabel:t|o-kotl-l|
|00001fc0| 61 62 65 6c 20 30 20 6b | 6f 74 6c 2d 6c 61 62 65 |abel 0 k|otl-labe|
|00001fd0| 6c 3a 69 6e 74 65 67 65 | 72 2d 70 20 73 74 72 69 |l:intege|r-p stri|
|00001fe0| 6e 67 2d 74 6f 2d 69 6e | 74 20 69 6e 74 2d 74 6f |ng-to-in|t int-to|
|00001ff0| 2d 73 74 72 69 6e 67 20 | 6b 6f 74 6c 2d 6c 61 62 |-string |kotl-lab|
|00002000| 65 6c 3a 61 6c 70 68 61 | 2d 74 6f 2d 69 6e 74 20 |el:alpha|-to-int |
|00002010| 6b 6f 74 6c 2d 6c 61 62 | 65 6c 3a 69 6e 74 2d 74 |kotl-lab|el:int-t|
|00002020| 6f 2d 61 6c 70 68 61 20 | 6b 6c 61 62 65 6c 3a 73 |o-alpha |klabel:s|
|00002030| 65 74 20 6c 61 62 65 6c | 2d 73 65 70 2d 6c 65 6e |et label|-sep-len|
|00002040| 20 6b 63 65 6c 6c 2d 76 | 69 65 77 3a 63 68 69 6c | kcell-v|iew:chil|
|00002050| 64 20 6b 6c 61 62 65 6c | 2d 74 79 70 65 3a 73 65 |d klabel|-type:se|
|00002060| 74 2d 61 6c 70 68 61 20 | 6b 6c 61 62 65 6c 3a 63 |t-alpha |klabel:c|
|00002070| 68 69 6c 64 2d 61 6c 70 | 68 61 20 63 75 72 72 65 |hild-alp|ha curre|
|00002080| 6e 74 2d 69 6e 64 65 6e | 74 20 70 65 72 2d 6c 65 |nt-inden|t per-le|
|00002090| 76 65 6c 2d 69 6e 64 65 | 6e 74 20 63 75 72 72 65 |vel-inde|nt curre|
|000020a0| 6e 74 2d 74 72 65 65 2d | 6f 6e 6c 79 20 6b 63 65 |nt-tree-|only kce|
|000020b0| 6c 6c 2d 76 69 65 77 3a | 6e 65 78 74 20 6b 63 65 |ll-view:|next kce|
|000020c0| 6c 6c 2d 76 69 65 77 3a | 69 6e 64 65 6e 74 5d 20 |ll-view:|indent] |
|000020d0| 36 20 22 5c 0a 53 65 74 | 20 74 68 65 20 6c 61 62 |6 "\.Set| the lab|
|000020e0| 65 6c 73 20 6f 66 20 63 | 75 72 72 65 6e 74 20 63 |els of c|urrent c|
|000020f0| 65 6c 6c 2c 20 69 74 73 | 20 66 6f 6c 6c 6f 77 69 |ell, its| followi|
|00002100| 6e 67 20 73 69 62 6c 69 | 6e 67 73 20 61 6e 64 20 |ng sibli|ngs and |
|00002110| 74 68 65 69 72 20 73 75 | 62 74 72 65 65 73 2e 0a |their su|btrees..|
|00002120| 43 55 52 52 45 4e 54 2d | 43 45 4c 4c 2d 4c 41 42 |CURRENT-|CELL-LAB|
|00002130| 45 4c 20 69 73 20 74 68 | 65 20 6c 61 62 65 6c 20 |EL is th|e label |
|00002140| 74 6f 20 64 69 73 70 6c | 61 79 20 66 6f 72 20 74 |to displ|ay for t|
|00002150| 68 65 20 63 75 72 72 65 | 6e 74 20 63 65 6c 6c 2e |he curre|nt cell.|
|00002160| 0a 4c 41 42 45 4c 2d 53 | 45 50 2d 4c 45 4e 20 69 |.LABEL-S|EP-LEN i|
|00002170| 73 20 74 68 65 20 6c 65 | 6e 67 74 68 20 6f 66 20 |s the le|ngth of |
|00002180| 74 68 65 20 73 65 70 61 | 72 61 74 69 6f 6e 20 62 |the sepa|ration b|
|00002190| 65 74 77 65 65 6e 20 61 | 20 63 65 6c 6c 27 73 20 |etween a| cell's |
|000021a0| 6c 61 62 65 6c 0a 61 6e | 64 20 74 68 65 20 73 74 |label.an|d the st|
|000021b0| 61 72 74 20 6f 66 20 69 | 74 73 20 63 6f 6e 74 65 |art of i|ts conte|
|000021c0| 6e 74 73 2e 22 5d 29 0a | 28 66 73 65 74 20 27 6b |nts."]).|(fset 'k|
|000021d0| 6c 61 62 65 6c 2d 74 79 | 70 65 3a 73 65 74 2d 69 |label-ty|pe:set-i|
|000021e0| 64 20 23 5b 28 63 75 72 | 72 65 6e 74 2d 63 65 6c |d #[(cur|rent-cel|
|000021f0| 6c 2d 6c 61 62 65 6c 20 | 6c 61 62 65 6c 2d 73 65 |l-label |label-se|
|00002200| 70 2d 6c 65 6e 20 26 72 | 65 73 74 20 69 67 6e 6f |p-len &r|est igno|
|00002210| 72 65 29 20 22 c0 20 ad | 8f c1 c2 20 0b 5c 22 ad |re) ". .|... .\".|
|00002220| 88 c4 c5 0b 5c 22 ad 82 | aa 71 87 22 20 5b 6b 6f |....\"..|.q." [ko|
|00002230| 74 6c 2d 6d 6f 64 65 3a | 66 69 72 73 74 2d 63 65 |tl-mode:|first-ce|
|00002240| 6c 6c 2d 70 20 6b 6c 61 | 62 65 6c 3a 73 65 74 20 |ll-p kla|bel:set |
|00002250| 6b 63 65 6c 6c 2d 76 69 | 65 77 3a 69 64 73 74 61 |kcell-vi|ew:idsta|
|00002260| 6d 70 20 6c 61 62 65 6c | 2d 73 65 70 2d 6c 65 6e |mp label|-sep-len|
|00002270| 20 6b 63 65 6c 6c 2d 76 | 69 65 77 3a 6e 65 78 74 | kcell-v|iew:next|
|00002280| 20 6e 69 6c 5d 20 33 20 | 22 5c 0a 53 65 74 20 74 | nil] 3 |"\.Set t|
|00002290| 68 65 20 6c 61 62 65 6c | 73 20 6f 66 20 63 75 72 |he label|s of cur|
|000022a0| 72 65 6e 74 20 63 65 6c | 6c 2c 20 69 74 73 20 66 |rent cel|l, its f|
|000022b0| 6f 6c 6c 6f 77 69 6e 67 | 20 73 69 62 6c 69 6e 67 |ollowing| sibling|
|000022c0| 73 20 61 6e 64 20 74 68 | 65 69 72 20 73 75 62 74 |s and th|eir subt|
|000022d0| 72 65 65 73 2e 0a 43 55 | 52 52 45 4e 54 2d 43 45 |rees..CU|RRENT-CE|
|000022e0| 4c 4c 2d 4c 41 42 45 4c | 20 69 73 20 74 68 65 20 |LL-LABEL| is the |
|000022f0| 6c 61 62 65 6c 20 74 6f | 20 64 69 73 70 6c 61 79 |label to| display|
|00002300| 20 66 6f 72 20 74 68 65 | 20 63 75 72 72 65 6e 74 | for the| current|
|00002310| 20 63 65 6c 6c 2e 22 5d | 29 0a 28 66 73 65 74 20 | cell."]|).(fset |
|00002320| 27 6b 6c 61 62 65 6c 2d | 74 79 70 65 3a 73 65 74 |'klabel-|type:set|
|00002330| 2d 6c 65 67 61 6c 20 23 | 5b 28 63 75 72 72 65 6e |-legal #|[(curren|
|00002340| 74 2d 63 65 6c 6c 2d 6c | 61 62 65 6c 20 6c 61 62 |t-cell-l|abel lab|
|00002350| 65 6c 2d 73 65 70 2d 6c | 65 6e 20 63 75 72 72 65 |el-sep-l|en curre|
|00002360| 6e 74 2d 69 6e 64 65 6e | 74 20 70 65 72 2d 6c 65 |nt-inden|t per-le|
|00002370| 76 65 6c 2d 69 6e 64 65 | 6e 74 20 26 6f 70 74 69 |vel-inde|nt &opti|
|00002380| 6f 6e 61 6c 20 63 75 72 | 72 65 6e 74 2d 74 72 65 |onal cur|rent-tre|
|00002390| 65 2d 6f 6e 6c 79 29 20 | 22 c0 89 89 89 19 1a 1b |e-only) |".......|
|000023a0| 1c 0d ab 8f c6 0d 21 13 | 0d c7 0b 47 5b 4f 14 c8 |......!.|...G[O..|
|000023b0| 0b 21 12 0d ad c9 c9 0d | 0e 5c 6e 5c 22 88 cb 0e |.!......|.\n\"...|
|000023c0| 5c 6e 21 ab 8f cc cd 0d | 21 0e 5c 6e 0e 0e 0e 0f |\n!.....|!.\n....|
|000023d0| 5c 5c 0e 0f 24 88 60 11 | 0e 10 ac 9f d1 c0 0e 5c |\\..$.`.|.......\|
|000023e0| 6e 5c 22 ab 98 0e 0e d2 | c0 0e 5c 6e 5c 22 55 ab |n\".....|..\n\"U.|
|000023f0| 8e 5c 6e 54 12 d3 5c 6e | 21 13 0c 0b 50 89 15 aa |.\nT..\n|!...P...|
|00002400| 3e 09 62 88 c0 89 15 ac | 38 c0 2c 87 22 20 5b 6e |>.b.....|8.,." [n|
|00002410| 69 6c 20 6f 70 6f 69 6e | 74 20 73 75 66 66 69 78 |il opoin|t suffix|
|00002420| 2d 76 61 6c 20 6c 61 62 | 65 6c 2d 73 75 66 66 69 |-val lab|el-suffi|
|00002430| 78 20 6c 61 62 65 6c 2d | 70 72 65 66 69 78 20 63 |x label-|prefix c|
|00002440| 75 72 72 65 6e 74 2d 63 | 65 6c 6c 2d 6c 61 62 65 |urrent-c|ell-labe|
|00002450| 6c 20 6b 6c 61 62 65 6c | 3a 74 6f 2d 6b 6f 74 6c |l klabel|:to-kotl|
|00002460| 2d 6c 61 62 65 6c 20 30 | 20 73 74 72 69 6e 67 2d |-label 0| string-|
|00002470| 74 6f 2d 69 6e 74 20 6b | 6c 61 62 65 6c 3a 73 65 |to-int k|label:se|
|00002480| 74 20 6c 61 62 65 6c 2d | 73 65 70 2d 6c 65 6e 20 |t label-|sep-len |
|00002490| 6b 63 65 6c 6c 2d 76 69 | 65 77 3a 63 68 69 6c 64 |kcell-vi|ew:child|
|000024a0| 20 6b 6c 61 62 65 6c 2d | 74 79 70 65 3a 73 65 74 | klabel-|type:set|
|000024b0| 2d 6c 65 67 61 6c 20 6b | 6c 61 62 65 6c 3a 63 68 |-legal k|label:ch|
|000024c0| 69 6c 64 2d 6c 65 67 61 | 6c 20 63 75 72 72 65 6e |ild-lega|l curren|
|000024d0| 74 2d 69 6e 64 65 6e 74 | 20 70 65 72 2d 6c 65 76 |t-indent| per-lev|
|000024e0| 65 6c 2d 69 6e 64 65 6e | 74 20 63 75 72 72 65 6e |el-inden|t curren|
|000024f0| 74 2d 74 72 65 65 2d 6f | 6e 6c 79 20 6b 63 65 6c |t-tree-o|nly kcel|
|00002500| 6c 2d 76 69 65 77 3a 6e | 65 78 74 20 6b 63 65 6c |l-view:n|ext kcel|
|00002510| 6c 2d 76 69 65 77 3a 69 | 6e 64 65 6e 74 20 69 6e |l-view:i|ndent in|
|00002520| 74 2d 74 6f 2d 73 74 72 | 69 6e 67 5d 20 36 20 22 |t-to-str|ing] 6 "|
|00002530| 5c 0a 53 65 74 20 74 68 | 65 20 6c 61 62 65 6c 73 |\.Set th|e labels|
|00002540| 20 6f 66 20 63 75 72 72 | 65 6e 74 20 63 65 6c 6c | of curr|ent cell|
|00002550| 2c 20 69 74 73 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |, its fo|llowing |
|00002560| 73 69 62 6c 69 6e 67 73 | 20 61 6e 64 20 74 68 65 |siblings| and the|
|00002570| 69 72 20 73 75 62 74 72 | 65 65 73 2e 0a 43 55 52 |ir subtr|ees..CUR|
|00002580| 52 45 4e 54 2d 43 45 4c | 4c 2d 4c 41 42 45 4c 20 |RENT-CEL|L-LABEL |
|00002590| 69 73 20 74 68 65 20 6c | 61 62 65 6c 20 74 6f 20 |is the l|abel to |
|000025a0| 64 69 73 70 6c 61 79 20 | 66 6f 72 20 74 68 65 20 |display |for the |
|000025b0| 63 75 72 72 65 6e 74 20 | 63 65 6c 6c 2e 0a 4c 41 |current |cell..LA|
|000025c0| 42 45 4c 2d 53 45 50 2d | 4c 45 4e 20 69 73 20 74 |BEL-SEP-|LEN is t|
|000025d0| 68 65 20 6c 65 6e 67 74 | 68 20 6f 66 20 74 68 65 |he lengt|h of the|
|000025e0| 20 73 65 70 61 72 61 74 | 69 6f 6e 20 62 65 74 77 | separat|ion betw|
|000025f0| 65 65 6e 20 61 20 63 65 | 6c 6c 27 73 20 6c 61 62 |een a ce|ll's lab|
|00002600| 65 6c 0a 61 6e 64 20 74 | 68 65 20 73 74 61 72 74 |el.and t|he start|
|00002610| 20 6f 66 20 69 74 73 20 | 63 6f 6e 74 65 6e 74 73 | of its |contents|
|00002620| 2e 22 5d 29 0a 28 66 73 | 65 74 20 27 6b 6c 61 62 |."]).(fs|et 'klab|
|00002630| 65 6c 2d 74 79 70 65 3a | 73 65 74 2d 6e 6f 20 23 |el-type:|set-no #|
|00002640| 5b 28 63 75 72 72 65 6e | 74 2d 63 65 6c 6c 2d 6c |[(curren|t-cell-l|
|00002650| 61 62 65 6c 20 6c 61 62 | 65 6c 2d 73 65 70 2d 6c |abel lab|el-sep-l|
|00002660| 65 6e 20 26 72 65 73 74 | 20 69 67 6e 6f 72 65 29 |en &rest| ignore)|
|00002670| 20 22 c0 20 ad 8e c1 c2 | 0b 5c 22 ad 88 c4 c5 0b | ". ....|.\".....|
|00002680| 5c 22 ad 82 aa 72 87 22 | 20 5b 6b 6f 74 6c 2d 6d |\"...r."| [kotl-m|
|00002690| 6f 64 65 3a 66 69 72 73 | 74 2d 63 65 6c 6c 2d 70 |ode:firs|t-cell-p|
|000026a0| 20 6b 6c 61 62 65 6c 3a | 73 65 74 20 22 22 20 6c | klabel:|set "" l|
|000026b0| 61 62 65 6c 2d 73 65 70 | 2d 6c 65 6e 20 6b 63 65 |abel-sep|-len kce|
|000026c0| 6c 6c 2d 76 69 65 77 3a | 6e 65 78 74 20 6e 69 6c |ll-view:|next nil|
|000026d0| 5d 20 33 20 22 5c 0a 53 | 65 74 20 74 68 65 20 6c |] 3 "\.S|et the l|
|000026e0| 61 62 65 6c 73 20 6f 66 | 20 63 75 72 72 65 6e 74 |abels of| current|
|000026f0| 20 63 65 6c 6c 2c 20 69 | 74 73 20 66 6f 6c 6c 6f | cell, i|ts follo|
|00002700| 77 69 6e 67 20 73 69 62 | 6c 69 6e 67 73 20 61 6e |wing sib|lings an|
|00002710| 64 20 74 68 65 69 72 20 | 73 75 62 74 72 65 65 73 |d their |subtrees|
|00002720| 2e 0a 43 55 52 52 45 4e | 54 2d 43 45 4c 4c 2d 4c |..CURREN|T-CELL-L|
|00002730| 41 42 45 4c 20 69 73 20 | 74 68 65 20 6c 61 62 65 |ABEL is |the labe|
|00002740| 6c 20 74 6f 20 64 69 73 | 70 6c 61 79 20 66 6f 72 |l to dis|play for|
|00002750| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 63 65 6c | the cur|rent cel|
|00002760| 6c 2e 22 5d 29 0a 28 66 | 73 65 74 20 27 6b 6c 61 |l."]).(f|set 'kla|
|00002770| 62 65 6c 2d 74 79 70 65 | 3a 73 65 74 2d 70 61 72 |bel-type|:set-par|
|00002780| 74 69 61 6c 2d 61 6c 70 | 68 61 20 23 5b 28 63 75 |tial-alp|ha #[(cu|
|00002790| 72 72 65 6e 74 2d 63 65 | 6c 6c 2d 6c 61 62 65 6c |rrent-ce|ll-label|
|000027a0| 20 6c 61 62 65 6c 2d 73 | 65 70 2d 6c 65 6e 20 63 | label-s|ep-len c|
|000027b0| 75 72 72 65 6e 74 2d 69 | 6e 64 65 6e 74 20 70 65 |urrent-i|ndent pe|
|000027c0| 72 2d 6c 65 76 65 6c 2d | 69 6e 64 65 6e 74 20 26 |r-level-|indent &|
|000027d0| 6f 70 74 69 6f 6e 61 6c | 20 63 75 72 72 65 6e 74 |optional| current|
|000027e0| 2d 74 72 65 65 2d 6f 6e | 6c 79 29 20 22 c0 89 89 |-tree-on|ly) "...|
|000027f0| 89 19 1a 1b 1c 0d ab 94 | 0d 14 c6 0c 21 ab 87 c7 |........|....!...|
|00002800| 0c 21 13 c8 aa 85 c9 0c | 21 13 ca 12 0d ad c7 cb |.!......|!.......|
|00002810| 0d 0e 0c 5c 22 88 cd 0e | 0c 21 ab 8f ce cf 0d 21 |...\"...|.!.....!|
|00002820| 0e 0c 0e 10 0e 11 5c 5c | 0e 11 24 88 60 11 0e 12 |......\\|..$.`...|
|00002830| ac 9d d3 c0 0e 0c 5c 22 | ab 96 0e 10 d4 c0 0e 0c |......\"|........|
|00002840| 5c 22 55 ab 8c 0b 54 13 | 5c 6e 0b 21 89 14 89 15 |\"U...T.|\n.!....|
|00002850| aa 40 09 62 88 c0 89 15 | ac 3a c0 2c 87 22 20 5b |.@.b....|.:.,." [|
|00002860| 6e 69 6c 20 6f 70 6f 69 | 6e 74 20 73 75 66 66 69 |nil opoi|nt suffi|
|00002870| 78 2d 66 75 6e 63 74 69 | 6f 6e 20 73 75 66 66 69 |x-functi|on suffi|
|00002880| 78 2d 76 61 6c 20 6c 61 | 62 65 6c 2d 73 75 66 66 |x-val la|bel-suff|
|00002890| 69 78 20 63 75 72 72 65 | 6e 74 2d 63 65 6c 6c 2d |ix curre|nt-cell-|
|000028a0| 6c 61 62 65 6c 20 6b 6f | 74 6c 2d 6c 61 62 65 6c |label ko|tl-label|
|000028b0| 3a 69 6e 74 65 67 65 72 | 2d 70 20 73 74 72 69 6e |:integer|-p strin|
|000028c0| 67 2d 74 6f 2d 69 6e 74 | 20 69 6e 74 2d 74 6f 2d |g-to-int| int-to-|
|000028d0| 73 74 72 69 6e 67 20 6b | 6f 74 6c 2d 6c 61 62 65 |string k|otl-labe|
|000028e0| 6c 3a 61 6c 70 68 61 2d | 74 6f 2d 69 6e 74 20 6b |l:alpha-|to-int k|
|000028f0| 6f 74 6c 2d 6c 61 62 65 | 6c 3a 69 6e 74 2d 74 6f |otl-labe|l:int-to|
|00002900| 2d 61 6c 70 68 61 20 6b | 6c 61 62 65 6c 3a 73 65 |-alpha k|label:se|
|00002910| 74 20 6c 61 62 65 6c 2d | 73 65 70 2d 6c 65 6e 20 |t label-|sep-len |
|00002920| 6b 63 65 6c 6c 2d 76 69 | 65 77 3a 63 68 69 6c 64 |kcell-vi|ew:child|
|00002930| 20 6b 6c 61 62 65 6c 2d | 74 79 70 65 3a 73 65 74 | klabel-|type:set|
|00002940| 2d 70 61 72 74 69 61 6c | 2d 61 6c 70 68 61 20 6b |-partial|-alpha k|
|00002950| 6c 61 62 65 6c 3a 63 68 | 69 6c 64 2d 70 61 72 74 |label:ch|ild-part|
|00002960| 69 61 6c 2d 61 6c 70 68 | 61 20 63 75 72 72 65 6e |ial-alph|a curren|
|00002970| 74 2d 69 6e 64 65 6e 74 | 20 70 65 72 2d 6c 65 76 |t-indent| per-lev|
|00002980| 65 6c 2d 69 6e 64 65 6e | 74 20 63 75 72 72 65 6e |el-inden|t curren|
|00002990| 74 2d 74 72 65 65 2d 6f | 6e 6c 79 20 6b 63 65 6c |t-tree-o|nly kcel|
|000029a0| 6c 2d 76 69 65 77 3a 6e | 65 78 74 20 6b 63 65 6c |l-view:n|ext kcel|
|000029b0| 6c 2d 76 69 65 77 3a 69 | 6e 64 65 6e 74 5d 20 36 |l-view:i|ndent] 6|
|000029c0| 20 22 5c 0a 53 65 74 20 | 74 68 65 20 6c 61 62 65 | "\.Set |the labe|
|000029d0| 6c 73 20 6f 66 20 63 75 | 72 72 65 6e 74 20 63 65 |ls of cu|rrent ce|
|000029e0| 6c 6c 2c 20 69 74 73 20 | 66 6f 6c 6c 6f 77 69 6e |ll, its |followin|
|000029f0| 67 20 73 69 62 6c 69 6e | 67 73 20 61 6e 64 20 74 |g siblin|gs and t|
|00002a00| 68 65 69 72 20 73 75 62 | 74 72 65 65 73 2e 0a 43 |heir sub|trees..C|
|00002a10| 55 52 52 45 4e 54 2d 43 | 45 4c 4c 2d 4c 41 42 45 |URRENT-C|ELL-LABE|
|00002a20| 4c 20 69 73 20 74 68 65 | 20 6c 61 62 65 6c 20 74 |L is the| label t|
|00002a30| 6f 20 64 69 73 70 6c 61 | 79 20 66 6f 72 20 74 68 |o displa|y for th|
|00002a40| 65 20 63 75 72 72 65 6e | 74 20 63 65 6c 6c 2e 0a |e curren|t cell..|
|00002a50| 4c 41 42 45 4c 2d 53 45 | 50 2d 4c 45 4e 20 69 73 |LABEL-SE|P-LEN is|
|00002a60| 20 74 68 65 20 6c 65 6e | 67 74 68 20 6f 66 20 74 | the len|gth of t|
|00002a70| 68 65 20 73 65 70 61 72 | 61 74 69 6f 6e 20 62 65 |he separ|ation be|
|00002a80| 74 77 65 65 6e 20 61 20 | 63 65 6c 6c 27 73 20 6c |tween a |cell's l|
|00002a90| 61 62 65 6c 0a 61 6e 64 | 20 74 68 65 20 73 74 61 |abel.and| the sta|
|00002aa0| 72 74 20 6f 66 20 69 74 | 73 20 63 6f 6e 74 65 6e |rt of it|s conten|
|00002ab0| 74 73 2e 22 5d 29 0a 28 | 66 73 65 74 20 27 6b 6c |ts."]).(|fset 'kl|
|00002ac0| 61 62 65 6c 2d 74 79 70 | 65 3a 73 65 74 2d 73 74 |abel-typ|e:set-st|
|00002ad0| 61 72 20 23 5b 28 63 75 | 72 72 65 6e 74 2d 63 65 |ar #[(cu|rrent-ce|
|00002ae0| 6c 6c 2d 6c 61 62 65 6c | 20 6c 61 62 65 6c 2d 73 |ll-label| label-s|
|00002af0| 65 70 2d 6c 65 6e 20 26 | 72 65 73 74 20 69 67 6e |ep-len &|rest ign|
|00002b00| 6f 72 65 29 20 22 c0 20 | ad 94 c1 c2 c3 c4 0d 5c |ore) ". |.......\|
|00002b10| 22 c6 5c 22 0d 5c 22 ad | 88 c7 c4 0d 5c 22 ad 82 |".\".\".|....\"..|
|00002b20| aa 6c 87 22 20 5b 6b 6f | 74 6c 2d 6d 6f 64 65 3a |.l." [ko|tl-mode:|
|00002b30| 66 69 72 73 74 2d 63 65 | 6c 6c 2d 70 20 6b 6c 61 |first-ce|ll-p kla|
|00002b40| 62 65 6c 3a 73 65 74 20 | 6d 61 6b 65 2d 73 74 72 |bel:set |make-str|
|00002b50| 69 6e 67 20 6b 63 65 6c | 6c 2d 76 69 65 77 3a 6c |ing kcel|l-view:l|
|00002b60| 65 76 65 6c 20 6e 69 6c | 20 6c 61 62 65 6c 2d 73 |evel nil| label-s|
|00002b70| 65 70 2d 6c 65 6e 20 34 | 32 20 6b 63 65 6c 6c 2d |ep-len 4|2 kcell-|
|00002b80| 76 69 65 77 3a 6e 65 78 | 74 5d 20 35 20 22 5c 0a |view:nex|t] 5 "\.|
|00002b90| 53 65 74 20 74 68 65 20 | 6c 61 62 65 6c 73 20 6f |Set the |labels o|
|00002ba0| 66 20 63 75 72 72 65 6e | 74 20 63 65 6c 6c 2c 20 |f curren|t cell, |
|00002bb0| 69 74 73 20 66 6f 6c 6c | 6f 77 69 6e 67 20 73 69 |its foll|owing si|
|00002bc0| 62 6c 69 6e 67 73 20 61 | 6e 64 20 74 68 65 69 72 |blings a|nd their|
|00002bd0| 20 73 75 62 74 72 65 65 | 73 2e 0a 43 55 52 52 45 | subtree|s..CURRE|
|00002be0| 4e 54 2d 43 45 4c 4c 2d | 4c 41 42 45 4c 20 69 73 |NT-CELL-|LABEL is|
|00002bf0| 20 74 68 65 20 6c 61 62 | 65 6c 20 74 6f 20 64 69 | the lab|el to di|
|00002c00| 73 70 6c 61 79 20 66 6f | 72 20 74 68 65 20 63 75 |splay fo|r the cu|
|00002c10| 72 72 65 6e 74 20 63 65 | 6c 6c 2e 0a 4c 41 42 45 |rrent ce|ll..LABE|
|00002c20| 4c 2d 53 45 50 2d 4c 45 | 4e 20 69 73 20 74 68 65 |L-SEP-LE|N is the|
|00002c30| 20 6c 65 6e 67 74 68 20 | 6f 66 20 74 68 65 20 73 | length |of the s|
|00002c40| 65 70 61 72 61 74 69 6f | 6e 20 62 65 74 77 65 65 |eparatio|n betwee|
|00002c50| 6e 20 61 20 63 65 6c 6c | 27 73 20 6c 61 62 65 6c |n a cell|'s label|
|00002c60| 0a 61 6e 64 20 74 68 65 | 20 73 74 61 72 74 20 6f |.and the| start o|
|00002c70| 66 20 69 74 73 20 63 6f | 6e 74 65 6e 74 73 2e 22 |f its co|ntents."|
|00002c80| 5d 29 0a 28 66 73 65 74 | 20 27 6b 6c 61 62 65 6c |]).(fset| 'klabel|
|00002c90| 2d 74 79 70 65 3a 75 70 | 64 61 74 65 2d 6c 61 62 |-type:up|date-lab|
|00002ca0| 65 6c 73 20 23 5b 28 63 | 75 72 72 65 6e 74 2d 63 |els #[(c|urrent-c|
|00002cb0| 65 6c 6c 2d 6c 61 62 65 | 6c 29 20 22 c0 09 21 1a |ell-labe|l) "..!.|
|00002cc0| 0b c4 98 ab 85 c5 5c 6e | 21 aa 84 c6 5c 6e 0b 5c |......\n|!...\n.\|
|00002cd0| 22 29 87 22 20 5b 6b 76 | 69 65 77 3a 6c 61 62 65 |")." [kv|iew:labe|
|00002ce0| 6c 2d 74 79 70 65 20 6b | 76 69 65 77 20 6c 61 62 |l-type k|view lab|
|00002cf0| 65 6c 2d 74 79 70 65 20 | 63 75 72 72 65 6e 74 2d |el-type |current-|
|00002d00| 63 65 6c 6c 2d 6c 61 62 | 65 6c 20 22 30 22 20 6b |cell-lab|el "0" k|
|00002d10| 6c 61 62 65 6c 2d 74 79 | 70 65 3a 73 65 74 2d 6c |label-ty|pe:set-l|
|00002d20| 61 62 65 6c 73 20 6b 6c | 61 62 65 6c 2d 74 79 70 |abels kl|abel-typ|
|00002d30| 65 3a 75 70 64 61 74 65 | 2d 6c 61 62 65 6c 73 2d |e:update|-labels-|
|00002d40| 66 72 6f 6d 2d 70 6f 69 | 6e 74 5d 20 33 20 22 5c |from-poi|nt] 3 "\|
|00002d50| 0a 55 70 64 61 74 65 20 | 74 68 65 20 6c 61 62 65 |.Update |the labe|
|00002d60| 6c 73 20 6f 66 20 63 75 | 72 72 65 6e 74 20 63 65 |ls of cu|rrent ce|
|00002d70| 6c 6c 2c 20 69 74 73 20 | 66 6f 6c 6c 6f 77 69 6e |ll, its |followin|
|00002d80| 67 20 73 69 62 6c 69 6e | 67 73 20 61 6e 64 20 74 |g siblin|gs and t|
|00002d90| 68 65 69 72 20 73 75 62 | 74 72 65 65 73 2e 0a 43 |heir sub|trees..C|
|00002da0| 55 52 52 45 4e 54 2d 43 | 45 4c 4c 2d 4c 41 42 45 |URRENT-C|ELL-LABE|
|00002db0| 4c 20 69 73 20 74 68 65 | 20 6c 61 62 65 6c 20 74 |L is the| label t|
|00002dc0| 6f 20 64 69 73 70 6c 61 | 79 20 66 6f 72 20 74 68 |o displa|y for th|
|00002dd0| 65 20 63 75 72 72 65 6e | 74 20 63 65 6c 6c 2e 0a |e curren|t cell..|
|00002de0| 49 66 2c 20 68 6f 77 65 | 76 65 72 2c 20 69 74 20 |If, howe|ver, it |
|00002df0| 69 73 20 5c 22 30 5c 22 | 2c 20 74 68 65 6e 20 61 |is \"0\"|, then a|
|00002e00| 6c 6c 20 63 65 6c 6c 20 | 6c 61 62 65 6c 73 20 61 |ll cell |labels a|
|00002e10| 72 65 20 75 70 64 61 74 | 65 64 2e 22 5d 29 0a 28 |re updat|ed."]).(|
|00002e20| 66 73 65 74 20 27 6b 6c | 61 62 65 6c 2d 74 79 70 |fset 'kl|abel-typ|
|00002e30| 65 3a 75 70 64 61 74 65 | 2d 74 72 65 65 2d 6c 61 |e:update|-tree-la|
|00002e40| 62 65 6c 73 20 23 5b 28 | 63 75 72 72 65 6e 74 2d |bels #[(|current-|
|00002e50| 63 65 6c 6c 2d 6c 61 62 | 65 6c 29 20 22 c0 09 21 |cell-lab|el) "..!|
|00002e60| c2 09 21 1b 1c 8a c5 c6 | c7 0c 21 50 21 0e 08 0b |..!.....|..!P!...|
|00002e70| c9 ca 0b 5c 22 cb 09 21 | cc 25 2b 87 22 20 5b 6b |...\"..!|.%+." [k|
|00002e80| 76 69 65 77 3a 6c 61 62 | 65 6c 2d 74 79 70 65 20 |view:lab|el-type |
|00002e90| 6b 76 69 65 77 20 6b 76 | 69 65 77 3a 6c 61 62 65 |kview kv|iew:labe|
|00002ea0| 6c 2d 73 65 70 61 72 61 | 74 6f 72 2d 6c 65 6e 67 |l-separa|tor-leng|
|00002eb0| 74 68 20 6c 61 62 65 6c | 2d 73 65 70 2d 6c 65 6e |th label|-sep-len|
|00002ec0| 20 6c 61 62 65 6c 2d 74 | 79 70 65 20 69 6e 74 65 | label-t|ype inte|
|00002ed0| 72 6e 2d 73 6f 66 74 20 | 22 6b 6c 61 62 65 6c 2d |rn-soft |"klabel-|
|00002ee0| 74 79 70 65 3a 73 65 74 | 2d 22 20 73 79 6d 62 6f |type:set|-" symbo|
|00002ef0| 6c 2d 6e 61 6d 65 20 66 | 69 72 73 74 2d 6c 61 62 |l-name f|irst-lab|
|00002f00| 65 6c 20 6b 63 65 6c 6c | 2d 76 69 65 77 3a 69 6e |el kcell|-view:in|
|00002f10| 64 65 6e 74 20 6e 69 6c | 20 6b 76 69 65 77 3a 6c |dent nil| kview:l|
|00002f20| 65 76 65 6c 2d 69 6e 64 | 65 6e 74 20 74 5d 20 36 |evel-ind|ent t] 6|
|00002f30| 20 22 5c 0a 55 70 64 61 | 74 65 20 74 68 65 20 6c | "\.Upda|te the l|
|00002f40| 61 62 65 6c 73 20 6f 66 | 20 63 75 72 72 65 6e 74 |abels of| current|
|00002f50| 20 63 65 6c 6c 20 61 6e | 64 20 69 74 73 20 73 75 | cell an|d its su|
|00002f60| 62 74 72 65 65 2e 0a 43 | 55 52 52 45 4e 54 2d 43 |btree..C|URRENT-C|
|00002f70| 45 4c 4c 2d 4c 41 42 45 | 4c 20 69 73 20 74 68 65 |ELL-LABE|L is the|
|00002f80| 20 6c 61 62 65 6c 20 74 | 6f 20 64 69 73 70 6c 61 | label t|o displa|
|00002f90| 79 20 66 6f 72 20 74 68 | 65 20 63 75 72 72 65 6e |y for th|e curren|
|00002fa0| 74 20 63 65 6c 6c 2e 0a | 55 73 65 20 27 28 6b 6c |t cell..|Use '(kl|
|00002fb0| 61 62 65 6c 2d 74 79 70 | 65 3a 75 70 64 61 74 65 |abel-typ|e:update|
|00002fc0| 2d 6c 61 62 65 6c 73 20 | 22 5d 29 0a 28 66 73 65 |-labels |"]).(fse|
|00002fd0| 74 20 27 6b 6f 74 6c 2d | 6c 61 62 65 6c 3a 61 6c |t 'kotl-|label:al|
|00002fe0| 70 68 61 2d 74 6f 2d 69 | 6e 74 20 23 5b 28 61 6c |pha-to-i|nt #[(al|
|00002ff0| 70 68 61 2d 6c 61 62 65 | 6c 29 20 22 08 47 c1 c2 |pha-labe|l) ".G..|
|00003000| 1b 1c 1d c6 c7 c8 c9 08 | 5c 22 5c 22 2b 87 22 20 |........|\"\"+." |
|00003010| 5b 61 6c 70 68 61 2d 6c | 61 62 65 6c 20 30 20 39 |[alpha-l|abel 0 9|
|00003020| 36 20 6d 69 6e 20 64 69 | 67 69 74 20 70 6f 77 65 |6 min di|git powe|
|00003030| 72 20 61 70 70 6c 79 20 | 2b 20 6d 61 70 63 61 72 |r apply |+ mapcar|
|00003040| 20 23 5b 28 63 68 72 29 | 20 22 08 09 5a 12 0b 53 | #[(chr)| "..Z..S|
|00003050| 13 c4 c5 c6 0b c7 5c 22 | 5c 22 5c 6e 5f 87 22 20 |......\"|\"\n_." |
|00003060| 5b 63 68 72 20 6d 69 6e | 20 64 69 67 69 74 20 70 |[chr min| digit p|
|00003070| 6f 77 65 72 20 61 70 70 | 6c 79 20 2a 20 6d 61 6b |ower app|ly * mak|
|00003080| 65 2d 6c 69 73 74 20 32 | 36 5d 20 35 5d 5d 20 35 |e-list 2|6] 5]] 5|
|00003090| 20 22 5c 0a 52 65 74 75 | 72 6e 20 69 6e 74 65 67 | "\.Retu|rn integ|
|000030a0| 65 72 20 76 61 6c 75 65 | 20 6f 66 20 41 4c 50 48 |er value| of ALPH|
|000030b0| 41 2d 4c 41 42 45 4c 2c | 20 65 2e 67 2e 20 60 62 |A-LABEL,| e.g. `b|
|000030c0| 27 20 72 65 74 75 72 6e | 73 20 32 2e 0a 41 73 73 |' return|s 2..Ass|
|000030d0| 75 6d 65 73 20 41 4c 50 | 48 41 2d 4c 41 42 45 4c |umes ALP|HA-LABEL|
|000030e0| 20 69 73 20 61 6c 70 68 | 61 62 65 74 69 63 2e 22 | is alph|abetic."|
|000030f0| 5d 29 0a 28 66 73 65 74 | 20 27 6b 6f 74 6c 2d 6c |]).(fset| 'kotl-l|
|00003100| 61 62 65 6c 3a 61 6c 70 | 68 61 2d 70 20 23 5b 28 |abel:alp|ha-p #[(|
|00003110| 6c 61 62 65 6c 29 20 22 | c0 c1 5c 6e 5c 22 ad 81 |label) "|..\n\"..|
|00003120| 5c 6e 87 22 20 5b 73 74 | 72 69 6e 67 2d 6d 61 74 |\n." [st|ring-mat|
|00003130| 63 68 20 22 5c 5c 60 5b | 61 2d 7a 41 2d 5a 5d 2b |ch "\\`[|a-zA-Z]+|
|00003140| 5c 5c 27 22 20 6c 61 62 | 65 6c 5d 20 33 20 22 5c |\\'" lab|el] 3 "\|
|00003150| 0a 52 65 74 75 72 6e 20 | 4c 41 42 45 4c 20 69 66 |.Return |LABEL if|
|00003160| 20 4c 41 42 45 4c 20 69 | 73 20 63 6f 6d 70 6f 73 | LABEL i|s compos|
|00003170| 65 64 20 6f 66 20 61 6c | 6c 20 61 6c 70 68 61 62 |ed of al|l alphab|
|00003180| 65 74 69 63 20 63 68 61 | 72 61 63 74 65 72 73 2c |etic cha|racters,|
|00003190| 20 65 6c 73 65 20 72 65 | 74 75 72 6e 20 6e 69 6c | else re|turn nil|
|000031a0| 2e 22 5d 29 0a 28 66 73 | 65 74 20 27 6b 6f 74 6c |."]).(fs|et 'kotl|
|000031b0| 2d 6c 61 62 65 6c 3a 63 | 68 69 6c 64 20 23 5b 28 |-label:c|hild #[(|
|000031c0| 6c 61 62 65 6c 29 20 22 | 08 c1 98 ac 85 08 c2 98 |label) "|........|
|000031d0| ab 82 c3 87 c4 08 21 ab | 82 c5 87 c3 87 22 20 5b |......!.|....." [|
|000031e0| 6c 61 62 65 6c 20 22 30 | 22 20 22 22 20 22 31 22 |label "0|" "" "1"|
|000031f0| 20 6b 6f 74 6c 2d 6c 61 | 62 65 6c 3a 69 6e 74 65 | kotl-la|bel:inte|
|00003200| 67 65 72 2d 70 20 22 61 | 22 5d 20 32 20 22 5c 0a |ger-p "a|"] 2 "\.|
|00003210| 52 65 74 75 72 6e 20 63 | 68 69 6c 64 20 6c 61 62 |Return c|hild lab|
|00003220| 65 6c 20 6f 66 20 70 61 | 72 74 69 61 6c 20 61 6c |el of pa|rtial al|
|00003230| 70 68 61 20 4c 41 42 45 | 4c 2e 22 5d 29 0a 28 66 |pha LABE|L."]).(f|
|00003240| 73 65 74 20 27 6b 6f 74 | 6c 2d 6c 61 62 65 6c 3a |set 'kot|l-label:|
|00003250| 63 72 65 61 74 65 20 23 | 5b 28 69 6e 74 2d 6f 72 |create #|[(int-or|
|00003260| 2d 73 74 72 69 6e 67 29 | 20 22 08 a8 ab 84 c1 08 |-string)| "......|
|00003270| 21 87 08 c2 9a ab 82 c3 | 87 08 87 22 20 5b 69 6e |!.......|..." [in|
|00003280| 74 2d 6f 72 2d 73 74 72 | 69 6e 67 20 69 6e 74 2d |t-or-str|ing int-|
|00003290| 74 6f 2d 73 74 72 69 6e | 67 20 22 22 20 22 30 22 |to-strin|g "" "0"|
|000032a0| 5d 20 32 20 22 5c 0a 52 | 65 74 75 72 6e 20 6e 65 |] 2 "\.R|eturn ne|
|000032b0| 77 20 6b 63 65 6c 6c 20 | 6c 61 62 65 6c 20 66 72 |w kcell |label fr|
|000032c0| 6f 6d 20 49 4e 54 2d 4f | 52 2d 53 54 52 49 4e 47 |om INT-O|R-STRING|
|000032d0| 2e 22 5d 29 0a 28 66 73 | 65 74 20 27 6b 6f 74 6c |."]).(fs|et 'kotl|
|000032e0| 2d 6c 61 62 65 6c 3a 69 | 6e 63 72 65 6d 65 6e 74 |-label:i|ncrement|
|000032f0| 20 23 5b 28 6c 61 62 65 | 6c 20 6e 29 20 22 c0 09 | #[(labe|l n) "..|
|00003300| 21 ac 85 c2 c3 09 5c 22 | 88 c4 c5 1e 06 1e 07 c8 |!.....\"|........|
|00003310| 09 21 89 16 07 ac 85 c9 | 09 21 ab bf 0e 07 ab 9e |.!......|.!......|
|00003320| ca 09 21 89 16 07 0e 0b | 5c 5c 89 16 06 c5 56 ab |..!.....|\\....V.|
|00003330| 86 cc 0e 06 21 aa a9 c2 | cd 09 0e 0b 23 aa a1 c5 |....!...|....#...|
|00003340| 0e 0b ce 09 21 5c 5c 89 | 16 06 58 ab 88 cc cf 0e |....!\\.|..X.....|
|00003350| 06 21 21 aa 8c c2 d0 09 | 0e 0b 23 aa 84 c2 d1 09 |.!!.....|..#.....|
|00003360| 5c 22 2a 87 22 20 5b 6b | 6f 74 6c 2d 6c 61 62 65 |\"*." [k|otl-labe|
|00003370| 6c 3a 69 73 2d 70 20 6c | 61 62 65 6c 20 65 72 72 |l:is-p l|abel err|
|00003380| 6f 72 20 22 28 6b 6f 74 | 6c 2d 6c 61 62 65 6c 3a |or "(kot|l-label:|
|00003390| 69 6e 63 72 65 6d 65 6e | 74 29 3a 20 46 69 72 73 |incremen|t): Firs|
|000033a0| 74 20 61 72 67 2c 20 27 | 25 73 27 2c 20 6d 75 73 |t arg, '|%s', mus|
|000033b0| 74 20 62 65 20 61 20 6b | 6f 74 6c 2d 6c 61 62 65 |t be a k|otl-labe|
|000033c0| 6c 2e 22 20 6e 69 6c 20 | 30 20 76 61 6c 20 69 6e |l." nil |0 val in|
|000033d0| 74 2d 70 20 6b 6f 74 6c | 2d 6c 61 62 65 6c 3a 69 |t-p kotl|-label:i|
|000033e0| 6e 74 65 67 65 72 2d 70 | 20 6b 6f 74 6c 2d 6c 61 |nteger-p| kotl-la|
|000033f0| 62 65 6c 3a 61 6c 70 68 | 61 2d 70 20 73 74 72 69 |bel:alph|a-p stri|
|00003400| 6e 67 2d 74 6f 2d 69 6e | 74 20 6e 20 6b 6f 74 6c |ng-to-in|t n kotl|
|00003410| 2d 6c 61 62 65 6c 3a 63 | 72 65 61 74 65 20 22 28 |-label:c|reate "(|
|00003420| 6b 6f 74 6c 2d 6c 61 62 | 65 6c 3a 69 6e 63 72 65 |kotl-lab|el:incre|
|00003430| 6d 65 6e 74 29 3a 20 44 | 65 63 72 65 6d 65 6e 74 |ment): D|ecrement|
|00003440| 20 6f 66 20 27 25 73 27 | 20 62 79 20 27 25 64 27 | of '%s'| by '%d'|
|00003450| 20 69 73 20 6c 65 73 73 | 20 74 68 61 6e 20 31 2e | is less| than 1.|
|00003460| 22 20 6b 6f 74 6c 2d 6c | 61 62 65 6c 3a 61 6c 70 |" kotl-l|abel:alp|
|00003470| 68 61 2d 74 6f 2d 69 6e | 74 20 6b 6f 74 6c 2d 6c |ha-to-in|t kotl-l|
|00003480| 61 62 65 6c 3a 69 6e 74 | 2d 74 6f 2d 61 6c 70 68 |abel:int|-to-alph|
|00003490| 61 20 22 28 6b 6f 74 6c | 2d 6c 61 62 65 6c 3a 69 |a "(kotl|-label:i|
|000034a0| 6e 63 72 65 6d 65 6e 74 | 29 3a 20 44 65 63 72 65 |ncrement|): Decre|
|000034b0| 6d 65 6e 74 20 6f 66 20 | 27 25 73 27 20 62 79 20 |ment of |'%s' by |
|000034c0| 27 25 64 27 20 69 73 20 | 69 6c 6c 65 67 61 6c 2e |'%d' is |illegal.|
|000034d0| 22 20 22 28 6b 6f 74 6c | 2d 6c 61 62 65 6c 3a 69 |" "(kotl|-label:i|
|000034e0| 6e 63 72 65 6d 65 6e 74 | 29 3a 20 6c 61 62 65 6c |ncrement|): label|
|000034f0| 2c 20 27 25 73 27 2c 20 | 6d 75 73 74 20 62 65 20 |, '%s', |must be |
|00003500| 61 6c 6c 20 64 69 67 69 | 74 73 20 6f 72 20 61 6c |all digi|ts or al|
|00003510| 70 68 61 20 63 68 61 72 | 61 63 74 65 72 73 22 5d |pha char|acters"]|
|00003520| 20 35 20 22 5c 0a 52 65 | 74 75 72 6e 20 4c 41 42 | 5 "\.Re|turn LAB|
|00003530| 45 4c 20 69 6e 63 72 65 | 6d 65 6e 74 65 64 20 62 |EL incre|mented b|
|00003540| 79 20 4e 2e 0a 46 6f 72 | 20 65 78 61 6d 70 6c 65 |y N..For| example|
|00003550| 2c 20 69 66 20 4e 20 77 | 65 72 65 20 31 2c 20 32 |, if N w|ere 1, 2|
|00003560| 20 77 6f 75 6c 64 20 62 | 65 63 6f 6d 65 20 33 2c | would b|ecome 3,|
|00003570| 20 7a 20 77 6f 75 6c 64 | 20 62 65 63 6f 6d 65 20 | z would| become |
|00003580| 61 61 2c 20 61 6e 64 20 | 61 61 20 77 6f 75 6c 64 |aa, and |aa would|
|00003590| 0a 62 65 63 6f 6d 65 20 | 62 62 2e 20 20 49 66 20 |.become |bb. If |
|000035a0| 4e 20 77 65 72 65 20 2d | 32 2c 20 34 20 77 6f 75 |N were -|2, 4 wou|
|000035b0| 6c 64 20 62 65 63 6f 6d | 65 20 32 2c 20 65 74 63 |ld becom|e 2, etc|
|000035c0| 2e 0a 4c 41 42 45 4c 20 | 6d 75 73 74 20 62 65 20 |..LABEL |must be |
|000035d0| 3e 3d 20 31 20 6f 72 20 | 3e 3d 20 61 2e 20 20 49 |>= 1 or |>= a. I|
|000035e0| 66 20 4c 41 42 45 4c 20 | 69 73 20 64 65 63 72 65 |f LABEL |is decre|
|000035f0| 6d 65 6e 74 65 64 20 62 | 65 6c 6f 77 20 31 20 6f |mented b|elow 1 o|
|00003600| 72 20 61 2c 20 61 6e 20 | 65 72 72 6f 72 0a 69 73 |r a, an |error.is|
|00003610| 20 73 69 67 6e 61 6c 65 | 64 2e 22 5d 29 0a 28 66 | signale|d."]).(f|
|00003620| 73 65 74 20 27 6b 6f 74 | 6c 2d 6c 61 62 65 6c 3a |set 'kot|l-label:|
|00003630| 69 6e 63 72 65 6d 65 6e | 74 2d 61 6c 70 68 61 20 |incremen|t-alpha |
|00003640| 23 5b 28 6c 61 62 65 6c | 29 20 22 c0 c1 5c 6e 21 |#[(label|) "..\n!|
|00003650| 54 21 87 22 20 5b 6b 6f | 74 6c 2d 6c 61 62 65 6c |T!." [ko|tl-label|
|00003660| 3a 69 6e 74 2d 74 6f 2d | 61 6c 70 68 61 20 6b 6f |:int-to-|alpha ko|
|00003670| 74 6c 2d 6c 61 62 65 6c | 3a 61 6c 70 68 61 2d 74 |tl-label|:alpha-t|
|00003680| 6f 2d 69 6e 74 20 6c 61 | 62 65 6c 5d 20 33 20 22 |o-int la|bel] 3 "|
|00003690| 5c 0a 52 65 74 75 72 6e | 20 61 6c 70 68 61 62 65 |\.Return| alphabe|
|000036a0| 74 69 63 20 4c 41 42 45 | 4c 20 69 6e 63 72 65 6d |tic LABE|L increm|
|000036b0| 65 6e 74 65 64 20 62 79 | 20 31 2e 0a 46 6f 72 20 |ented by| 1..For |
|000036c0| 65 78 61 6d 70 6c 65 2c | 20 7a 20 77 6f 75 6c 64 |example,| z would|
|000036d0| 20 62 65 63 6f 6d 65 20 | 61 61 2c 20 61 6e 64 20 | become |aa, and |
|000036e0| 61 61 20 77 6f 75 6c 64 | 20 62 65 63 6f 6d 65 20 |aa would| become |
|000036f0| 62 62 2e 20 20 4c 41 42 | 45 4c 20 6d 75 73 74 20 |bb. LAB|EL must |
|00003700| 62 65 20 3e 3d 20 61 2e | 22 5d 29 0a 28 66 73 65 |be >= a.|"]).(fse|
|00003710| 74 20 27 6b 6f 74 6c 2d | 6c 61 62 65 6c 3a 69 6e |t 'kotl-|label:in|
|00003720| 63 72 65 6d 65 6e 74 2d | 69 6e 74 20 23 5b 28 69 |crement-|int #[(i|
|00003730| 6e 74 2d 73 74 72 69 6e | 67 29 20 22 c0 c1 5c 6e |nt-strin|g) "..\n|
|00003740| 21 54 21 87 22 20 5b 69 | 6e 74 2d 74 6f 2d 73 74 |!T!." [i|nt-to-st|
|00003750| 72 69 6e 67 20 73 74 72 | 69 6e 67 2d 74 6f 2d 69 |ring str|ing-to-i|
|00003760| 6e 74 20 69 6e 74 2d 73 | 74 72 69 6e 67 5d 20 33 |nt int-s|tring] 3|
|00003770| 20 22 5c 0a 52 65 74 75 | 72 6e 20 49 4e 54 2d 53 | "\.Retu|rn INT-S|
|00003780| 54 52 49 4e 47 20 6c 61 | 62 65 6c 20 69 6e 63 72 |TRING la|bel incr|
|00003790| 65 6d 65 6e 74 65 64 20 | 62 79 20 31 2e 0a 46 6f |emented |by 1..Fo|
|000037a0| 72 20 65 78 61 6d 70 6c | 65 2c 20 5c 22 31 34 5c |r exampl|e, \"14\|
|000037b0| 22 20 77 6f 75 6c 64 20 | 62 65 63 6f 6d 65 20 5c |" would |become \|
|000037c0| 22 31 35 5c 22 2e 22 5d | 29 0a 28 66 73 65 74 20 |"15\"."]|).(fset |
|000037d0| 27 6b 6f 74 6c 2d 6c 61 | 62 65 6c 3a 69 6e 74 65 |'kotl-la|bel:inte|
|000037e0| 67 65 72 2d 70 20 23 5b | 28 6c 61 62 65 6c 29 20 |ger-p #[|(label) |
|000037f0| 22 c0 c1 5c 6e 5c 22 ad | 81 5c 6e 87 22 20 5b 73 |"..\n\".|.\n." [s|
|00003800| 74 72 69 6e 67 2d 6d 61 | 74 63 68 20 22 5c 5c 60 |tring-ma|tch "\\`|
|00003810| 5b 30 2d 39 5d 2b 5c 5c | 27 22 20 6c 61 62 65 6c |[0-9]+\\|'" label|
|00003820| 5d 20 33 20 22 5c 0a 52 | 65 74 75 72 6e 20 4c 41 |] 3 "\.R|eturn LA|
|00003830| 42 45 4c 20 69 66 66 20 | 4c 41 42 45 4c 20 69 73 |BEL iff |LABEL is|
|00003840| 20 63 6f 6d 70 6f 73 65 | 64 20 6f 66 20 61 6c 6c | compose|d of all|
|00003850| 20 64 69 67 69 74 73 2c | 20 65 6c 73 65 20 72 65 | digits,| else re|
|00003860| 74 75 72 6e 20 6e 69 6c | 2e 22 5d 29 0a 28 66 73 |turn nil|."]).(fs|
|00003870| 65 74 20 27 6b 6f 74 6c | 2d 6c 61 62 65 6c 3a 69 |et 'kotl|-label:i|
|00003880| 6e 74 2d 74 6f 2d 61 6c | 70 68 61 20 23 5b 28 6e |nt-to-al|pha #[(n|
|00003890| 29 20 22 08 3b ab 84 c1 | 08 21 10 c2 c3 89 89 89 |) ".;...|.!......|
|000038a0| 1c 1d 1e 06 1e 07 1e 08 | 08 c9 55 ab 83 c2 aa d7 |........|..U.....|
|000038b0| ca cb cc 08 53 cd 5c 22 | c9 55 ab 83 08 aa 82 08 |....S.\"|.U......|
|000038c0| 53 21 21 89 16 07 c9 59 | ab bc ce cd 0e 07 5c 22 |S!!....Y|......\"|
|000038d0| 16 06 ca 08 0e 06 a5 21 | 15 cc 08 0e 06 5c 22 89 |.......!|.....\".|
|000038e0| 14 c9 55 ab 8a 0d 0e 07 | 54 5a 15 cd 10 aa 87 0c |..U.....|TZ......|
|000038f0| 10 c9 0d 53 5d 15 0e 08 | cf 0d d0 5c 5c 21 50 16 |...S]...|...\\!P.|
|00003900| 08 0e 07 53 89 16 07 aa | 40 0e 08 2d 87 22 20 5b |...S....|@..-." [|
|00003910| 6e 20 73 74 72 69 6e 67 | 2d 74 6f 2d 69 6e 74 20 |n string|-to-int |
|00003920| 22 22 20 6e 69 6c 20 72 | 65 6d 61 69 6e 64 65 72 |"" nil r|emainder|
|00003930| 20 71 75 6f 74 69 65 6e | 74 20 65 78 70 32 36 20 | quotien|t exp26 |
|00003940| 70 6f 77 32 36 20 6c 62 | 6c 20 30 20 66 6c 6f 6f |pow26 lb|l 0 floo|
|00003950| 72 20 6b 6f 74 6c 2d 6c | 61 62 65 6c 3a 6c 6f 67 |r kotl-l|abel:log|
|00003960| 32 36 20 6d 6f 64 20 32 | 36 20 65 78 70 74 20 63 |26 mod 2|6 expt c|
|00003970| 68 61 72 2d 74 6f 2d 73 | 74 72 69 6e 67 20 39 37 |har-to-s|tring 97|
|00003980| 5d 20 36 20 22 5c 0a 52 | 65 74 75 72 6e 20 61 6c |] 6 "\.R|eturn al|
|00003990| 70 68 61 62 65 74 69 63 | 20 72 65 70 72 65 73 65 |phabetic| represe|
|000039a0| 6e 74 61 74 69 6f 6e 20 | 6f 66 20 4e 20 61 73 20 |ntation |of N as |
|000039b0| 61 20 73 74 72 69 6e 67 | 2e 0a 4e 20 6d 61 79 20 |a string|..N may |
|000039c0| 62 65 20 61 6e 20 69 6e | 74 65 67 65 72 20 6f 72 |be an in|teger or|
|000039d0| 20 61 20 73 74 72 69 6e | 67 20 63 6f 6e 74 61 69 | a strin|g contai|
|000039e0| 6e 69 6e 67 20 61 6e 20 | 69 6e 74 65 67 65 72 2e |ning an |integer.|
|000039f0| 22 5d 29 0a 28 66 73 65 | 74 20 27 6b 6f 74 6c 2d |"]).(fse|t 'kotl-|
|00003a00| 6c 61 62 65 6c 3a 69 73 | 2d 70 20 23 5b 28 6f 62 |label:is|-p #[(ob|
|00003a10| 6a 65 63 74 29 20 22 08 | 3b 87 22 20 5b 6f 62 6a |ject) ".|;." [obj|
|00003a20| 65 63 74 5d 20 31 20 22 | 5c 0a 52 65 74 75 72 6e |ect] 1 "|\.Return|
|00003a30| 20 6e 6f 6e 2d 6e 69 6c | 20 69 66 20 4f 42 4a 45 | non-nil| if OBJE|
|00003a40| 43 54 20 69 73 20 61 20 | 4b 4f 54 4c 2d 4c 41 42 |CT is a |KOTL-LAB|
|00003a50| 45 4c 2e 22 5d 29 0a 28 | 66 73 65 74 20 27 6b 6c |EL."]).(|fset 'kl|
|00003a60| 61 62 65 6c 3a 73 65 74 | 20 23 5b 28 6e 65 77 2d |abel:set| #[(new-|
|00003a70| 6c 61 62 65 6c 20 26 6f | 70 74 69 6f 6e 61 6c 20 |label &o|ptional |
|00003a80| 6c 61 62 65 6c 2d 73 65 | 70 2d 6c 65 6e 29 20 22 |label-se|p-len) "|
|00003a90| c0 20 c1 c2 c1 0b 5c 22 | 0b ae 83 c4 0d 21 5a 1e |. ....\"|.....!Z.|
|00003aa0| 06 1e 07 1e 08 8a c9 20 | 88 ca 0e 06 21 88 cb 89 |....... |....!...|
|00003ab0| cc 0e 06 5c 22 0e 0d 5c | 22 63 88 29 ce 0e 08 21 |...\"..\|"c.)...!|
|00003ac0| 88 0e 0d 2b 87 22 20 5b | 62 75 66 66 65 72 2d 6d |...+." [|buffer-m|
|00003ad0| 6f 64 69 66 69 65 64 2d | 70 20 6e 69 6c 20 6b 63 |odified-|p nil kc|
|00003ae0| 65 6c 6c 2d 76 69 65 77 | 3a 69 6e 64 65 6e 74 20 |ell-view|:indent |
|00003af0| 6c 61 62 65 6c 2d 73 65 | 70 2d 6c 65 6e 20 6b 76 |label-se|p-len kv|
|00003b00| 69 65 77 3a 6c 61 62 65 | 6c 2d 73 65 70 61 72 61 |iew:labe|l-separa|
|00003b10| 74 6f 72 2d 6c 65 6e 67 | 74 68 20 6b 76 69 65 77 |tor-leng|th kview|
|00003b20| 20 74 68 72 75 2d 6c 61 | 62 65 6c 20 62 75 66 66 | thru-la|bel buff|
|00003b30| 65 72 2d 72 65 61 64 2d | 6f 6e 6c 79 20 6d 6f 64 |er-read-|only mod|
|00003b40| 69 66 69 65 64 20 6b 63 | 65 6c 6c 2d 76 69 65 77 |ified kc|ell-view|
|00003b50| 3a 74 6f 2d 6c 61 62 65 | 6c 2d 65 6e 64 20 64 65 |:to-labe|l-end de|
|00003b60| 6c 65 74 65 2d 62 61 63 | 6b 77 61 72 64 2d 63 68 |lete-bac|kward-ch|
|00003b70| 61 72 20 66 6f 72 6d 61 | 74 20 22 25 25 25 64 73 |ar forma|t "%%%ds|
|00003b80| 22 20 6e 65 77 2d 6c 61 | 62 65 6c 20 73 65 74 2d |" new-la|bel set-|
|00003b90| 62 75 66 66 65 72 2d 6d | 6f 64 69 66 69 65 64 2d |buffer-m|odified-|
|00003ba0| 70 5d 20 35 20 22 5c 0a | 52 65 70 6c 61 63 65 20 |p] 5 "\.|Replace |
|00003bb0| 6c 61 62 65 6c 20 64 69 | 73 70 6c 61 79 65 64 20 |label di|splayed |
|00003bc0| 69 6e 20 63 65 6c 6c 20 | 61 74 20 70 6f 69 6e 74 |in cell |at point|
|00003bd0| 20 77 69 74 68 20 4e 45 | 57 2d 4c 41 42 45 4c 2c | with NE|W-LABEL,|
|00003be0| 20 77 68 69 63 68 20 6d | 61 79 20 62 65 20 61 20 | which m|ay be a |
|00003bf0| 64 69 66 66 65 72 65 6e | 74 20 6c 61 62 65 6c 20 |differen|t label |
|00003c00| 74 79 70 65 2e 0a 52 65 | 74 75 72 6e 20 4e 45 57 |type..Re|turn NEW|
|00003c10| 2d 4c 41 42 45 4c 20 73 | 74 72 69 6e 67 2e 22 5d |-LABEL s|tring."]|
|00003c20| 29 0a 28 66 73 65 74 20 | 27 6b 6c 61 62 65 6c 3a |).(fset |'klabel:|
|00003c30| 74 6f 2d 6b 6f 74 6c 2d | 6c 61 62 65 6c 20 23 5b |to-kotl-|label #[|
|00003c40| 28 6c 61 62 65 6c 29 20 | 22 c0 c1 5c 6e 5c 22 ab |(label) |"..\n\".|
|00003c50| 86 5c 6e c3 94 c4 4f 87 | c5 c6 5c 6e 5c 22 87 22 |.\n...O.|..\n\"."|
|00003c60| 20 5b 73 74 72 69 6e 67 | 2d 6d 61 74 63 68 20 22 | [string|-match "|
|00003c70| 5b 30 2d 39 5d 2b 24 5c | 5c 7c 5b 61 2d 7a 41 2d |[0-9]+$\|\|[a-zA-|
|00003c80| 5a 5d 2b 24 22 20 6c 61 | 62 65 6c 20 30 20 6e 69 |Z]+$" la|bel 0 ni|
|00003c90| 6c 20 65 72 72 6f 72 20 | 22 28 6b 6c 61 62 65 6c |l error |"(klabel|
|00003ca0| 3a 74 6f 2d 6b 6f 74 6c | 2d 6c 61 62 65 6c 29 3a |:to-kotl|-label):|
|00003cb0| 20 49 6e 76 61 6c 69 64 | 20 6c 61 62 65 6c 2c 20 | Invalid| label, |
|00003cc0| 27 25 73 27 22 5d 20 33 | 20 22 5c 0a 47 69 76 65 |'%s'"] 3| "\.Give|
|00003cd0| 6e 20 66 75 6c 6c 20 61 | 6c 70 68 61 20 6f 72 20 |n full a|lpha or |
|00003ce0| 6c 65 67 61 6c 20 4c 41 | 42 45 4c 2c 20 72 65 74 |legal LA|BEL, ret|
|00003cf0| 75 72 6e 20 72 69 67 68 | 74 6d 6f 73 74 20 70 61 |urn righ|tmost pa|
|00003d00| 72 74 2c 20 63 61 6c 6c | 65 64 20 61 20 6b 6f 74 |rt, call|ed a kot|
|00003d10| 6c 2d 6c 61 62 65 6c 2e | 0a 46 6f 72 20 65 78 61 |l-label.|.For exa|
|00003d20| 6d 70 6c 65 2c 20 74 68 | 65 20 66 75 6c 6c 20 6c |mple, th|e full l|
|00003d30| 61 62 65 6c 20 5c 22 31 | 61 32 5c 22 20 68 61 73 |abel \"1|a2\" has|
|00003d40| 20 6b 6f 74 6c 2d 6c 61 | 62 65 6c 20 5c 22 32 5c | kotl-la|bel \"2\|
|00003d50| 22 2c 20 61 73 20 64 6f | 65 73 20 5c 22 31 2e 31 |", as do|es \"1.1|
|00003d60| 2e 32 5c 22 2e 22 5d 29 | 0a 28 66 73 65 74 20 27 |.2\"."])|.(fset '|
|00003d70| 6b 6c 61 62 65 6c 2d 74 | 79 70 65 3a 75 70 64 61 |klabel-t|ype:upda|
|00003d80| 74 65 2d 6c 61 62 65 6c | 73 2d 66 72 6f 6d 2d 70 |te-label|s-from-p|
|00003d90| 6f 69 6e 74 20 23 5b 28 | 6c 61 62 65 6c 2d 74 79 |oint #[(|label-ty|
|00003da0| 70 65 20 66 69 72 73 74 | 2d 6c 61 62 65 6c 29 20 |pe first|-label) |
|00003db0| 22 c0 09 21 1a 8a c3 c4 | c5 0e 06 21 50 21 0e 07 |"..!....|...!P!..|
|00003dc0| 5c 6e c8 c9 5c 6e 5c 22 | ca 09 21 24 2a 87 22 20 |\n..\n\"|..!$*." |
|00003dd0| 5b 6b 76 69 65 77 3a 6c | 61 62 65 6c 2d 73 65 70 |[kview:l|abel-sep|
|00003de0| 61 72 61 74 6f 72 2d 6c | 65 6e 67 74 68 20 6b 76 |arator-l|ength kv|
|00003df0| 69 65 77 20 6c 61 62 65 | 6c 2d 73 65 70 2d 6c 65 |iew labe|l-sep-le|
|00003e00| 6e 20 69 6e 74 65 72 6e | 2d 73 6f 66 74 20 22 6b |n intern|-soft "k|
|00003e10| 6c 61 62 65 6c 2d 74 79 | 70 65 3a 73 65 74 2d 22 |label-ty|pe:set-"|
|00003e20| 20 73 79 6d 62 6f 6c 2d | 6e 61 6d 65 20 6c 61 62 | symbol-|name lab|
|00003e30| 65 6c 2d 74 79 70 65 20 | 66 69 72 73 74 2d 6c 61 |el-type |first-la|
|00003e40| 62 65 6c 20 6b 63 65 6c | 6c 2d 76 69 65 77 3a 69 |bel kcel|l-view:i|
|00003e50| 6e 64 65 6e 74 20 6e 69 | 6c 20 6b 76 69 65 77 3a |ndent ni|l kview:|
|00003e60| 6c 65 76 65 6c 2d 69 6e | 64 65 6e 74 5d 20 36 5d |level-in|dent] 6]|
|00003e70| 29 0a 28 66 73 65 74 20 | 27 6b 6f 74 6c 2d 6c 61 |).(fset |'kotl-la|
|00003e80| 62 65 6c 3a 6c 6f 67 32 | 36 20 23 5b 28 6e 29 20 |bel:log2|6 #[(n) |
|00003e90| 22 c0 09 21 c2 a5 87 22 | 20 5b 6c 6f 67 31 30 20 |"..!..."| [log10 |
|00003ea0| 6e 20 31 2e 34 32 33 34 | 37 37 36 36 32 35 30 39 |n 1.4234|77662509|
|00003eb0| 39 31 32 5d 20 32 20 22 | 5c 0a 52 65 74 75 72 6e |912] 2 "|\.Return|
|00003ec0| 20 6c 6f 67 20 62 61 73 | 65 20 32 36 20 6f 66 20 | log bas|e 26 of |
|00003ed0| 69 6e 74 65 67 65 72 20 | 4e 2e 22 5d 29 0a 28 70 |integer |N."]).(p|
|00003ee0| 72 6f 76 69 64 65 20 27 | 6b 6c 61 62 65 6c 29 0a |rovide '|klabel).|
+--------+-------------------------+-------------------------+--------+--------+